6. numbers II


Hi i just wanna know how does the code work?
does it pick the maximum value from both columns?


SELECT id, MAX(ingredients_cost, packaging_cost)
FROM baked_goods;

thank you


It picks the maximum value of the two columns with ID.


Ok I got it. Thanks a lot.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.