I want to select the value with max Quantity and at the same time have to insert it into a different table but I\'m getting an error. please help me to fix this query. I att