Implemented sql for selecting pack and buy amount for each meal.