Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1443, 28, '2010-05-08', '2010-04-02', 12, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3373, 3, 133, 1443, 28, 104, 6, 1, 1, 6, 12, 0) Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3373, 3, 133, 1443, 28, 103, 2, 1, 1, 2, 6, 0) Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3373, 3, 133, 1443, 28, 102, 2, 1, 1, 2, 5, 0) Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1443, 30, '2010-05-08', '2010-04-02', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3374, 3, 133, 1443, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1443, 27, '2010-05-08', '2010-04-02', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3375, 3, 133, 1443, 27, 96, 2, 1, 1, 2, 1.5, 0) Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3375, 3, 133, 1443, 27, 97, 6, 1, 1, 6, 4.5, 0) Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3375, 3, 133, 1443, 27, 323, 1, 1, 1, 1, 0.75, 0) Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1444, 31, '2010-05-08', '2010-04-07', 4, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3376, 3, 133, 1444, 31, 105, 9, 1, 12, 1, 4, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1444, 30, '2010-05-08', '2010-04-07', 5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3377, 3, 133, 1444, 30, 107, 9, 1, 8, 2, 5, 0) Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3376, 3, 133, 1444, 31, 106, 0, 1, 12, 0, 0, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3377, 3, 133, 1444, 30, 108, 2, 1, 6, 1, 1.5, 0) 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1444, 27, '2010-05-08', '2010-04-07', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3378, 3, 133, 1444, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3378, 3, 133, 1444, 27, 97, 5, 1, 1, 5, 3.75, 0) Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3378, 3, 133, 1444, 27, 323, 1, 1, 1, 1, 0.75, 0) Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1445, 29, '2010-05-08', '2010-04-09', 8, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3379, 3, 133, 1445, 29, 112, 4, 1, 1, 4, 8, 0) Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3379, 3, 133, 1445, 29, 109, 0, 1, 1, 0, 0, 0) Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3379, 3, 133, 1445, 29, 110, 1, 1, 1, 1, 2.5, 0) Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3379, 3, 133, 1445, 29, 111, 1, 1, 1, 1, 2.5, 0) Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1445, 30, '2010-05-08', '2010-04-09', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3380, 3, 133, 1445, 30, 108, 1, 1, 6, 1, 1.5, 0) 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1445, 27, '2010-05-08', '2010-04-09', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3381, 3, 133, 1445, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3381, 3, 133, 1445, 27, 97, 2, 1, 1, 2, 1.5, 0) Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3381, 3, 133, 1445, 27, 323, 0, 1, 1, 0, 0, 0) Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1445, 285, '2010-05-08', '2010-04-09', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3382, 3, 133, 1445, 285, 2226, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3382, 3, 133, 1445, 285, 2227, 0, 1, 1, 0, 0, 0) Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3382, 3, 133, 1445, 285, 2228, 0, 1, 1, 0, 0, 0) Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3382, 3, 133, 1445, 285, 2230, 0, 1, 1, 0, 0, 0) Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1445, 66, '2010-05-08', '2010-04-09', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3383, 3, 133, 1445, 66, 2119, 0, 1, 24, 0, 0, 0) Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3383, 3, 133, 1445, 66, 2116, 0, 1, 1, 0, 0, 0) Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3383, 3, 133, 1445, 66, 2117, 0, 1, 30, 0, 0, 0) Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3383, 3, 133, 1445, 66, 2118, 0, 1, 40, 0, 0, 0) Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1446, 28, '2010-05-08', '2010-04-14', 15, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3384, 3, 133, 1446, 28, 99, 10, 1, 1, 10, 15, 0) Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3384, 3, 133, 1446, 28, 100, 3, 1, 1, 3, 9, 0) Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3384, 3, 133, 1446, 28, 101, 2, 1, 1, 2, 3, 0) Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1446, 30, '2010-05-08', '2010-04-14', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3385, 3, 133, 1446, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1446, 27, '2010-05-08', '2010-04-14', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3386, 3, 133, 1446, 27, 96, 2, 1, 1, 2, 1.5, 0) Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3386, 3, 133, 1446, 27, 97, 4, 1, 1, 4, 3, 0) Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3386, 3, 133, 1446, 27, 323, 1, 1, 1, 1, 0.75, 0) Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3386, 3, 133, 1446, 27, 324, 4, 1, 1, 4, 3, 0) Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1447, 28, '2010-05-08', '2010-04-16', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3387, 3, 133, 1447, 28, 104, 1, 1, 1, 1, 2, 0) Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3387, 3, 133, 1447, 28, 103, 2, 1, 1, 2, 6, 0) Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3387, 3, 133, 1447, 28, 102, 1, 1, 1, 1, 2.5, 0) Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1447, 30, '2010-05-08', '2010-04-16', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3388, 3, 133, 1447, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1447, 27, '2010-05-08', '2010-04-16', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3389, 3, 133, 1447, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3389, 3, 133, 1447, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3389, 3, 133, 1447, 27, 323, 1, 1, 1, 1, 0.75, 0) Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1448, 31, '2010-05-08', '2010-04-21', 4, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3390, 3, 133, 1448, 31, 105, 5, 1, 12, 1, 4, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1448, 30, '2010-05-08', '2010-04-21', 2.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3391, 3, 133, 1448, 30, 107, 5, 1, 8, 1, 2.5, 0) Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3390, 3, 133, 1448, 31, 106, 1, 1, 12, 1, 3.5, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3391, 3, 133, 1448, 30, 108, 1, 1, 6, 1, 1.5, 0) 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1448, 27, '2010-05-08', '2010-04-21', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3392, 3, 133, 1448, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3392, 3, 133, 1448, 27, 97, 1, 1, 1, 1, 0.75, 0) Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3392, 3, 133, 1448, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1449, 29, '2010-05-08', '2010-04-23', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3393, 3, 133, 1449, 29, 112, 1, 1, 1, 1, 2, 0) Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3393, 3, 133, 1449, 29, 109, 0, 1, 1, 0, 0, 0) Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3393, 3, 133, 1449, 29, 110, 1, 1, 1, 1, 2.5, 0) Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3393, 3, 133, 1449, 29, 111, 1, 1, 1, 1, 2.5, 0) Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1449, 30, '2010-05-08', '2010-04-23', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3394, 3, 133, 1449, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1449, 27, '2010-05-08', '2010-04-23', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3395, 3, 133, 1449, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3395, 3, 133, 1449, 27, 97, 1, 1, 1, 1, 0.75, 0) Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3395, 3, 133, 1449, 27, 323, 0, 1, 1, 0, 0, 0) Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1449, 285, '2010-05-08', '2010-04-23', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3396, 3, 133, 1449, 285, 2226, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3396, 3, 133, 1449, 285, 2227, 0, 1, 1, 0, 0, 0) Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3396, 3, 133, 1449, 285, 2228, 0, 1, 1, 0, 0, 0) Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3396, 3, 133, 1449, 285, 2230, 0, 1, 1, 0, 0, 0) Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1449, 66, '2010-05-08', '2010-04-23', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3397, 3, 133, 1449, 66, 2119, 0, 1, 24, 0, 0, 0) Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3397, 3, 133, 1449, 66, 2116, 0, 1, 1, 0, 0, 0) Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3397, 3, 133, 1449, 66, 2117, 0, 1, 30, 0, 0, 0) Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3397, 3, 133, 1449, 66, 2118, 0, 1, 40, 0, 0, 0) Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1450, 28, '2010-05-08', '2010-04-28', 3, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3398, 3, 133, 1450, 28, 99, 2, 1, 1, 2, 3, 0) Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3398, 3, 133, 1450, 28, 100, 1, 1, 1, 1, 3, 0) Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3398, 3, 133, 1450, 28, 101, 2, 1, 1, 2, 3, 0) Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1450, 30, '2010-05-08', '2010-04-28', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3399, 3, 133, 1450, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1450, 27, '2010-05-08', '2010-04-28', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3400, 3, 133, 1450, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3400, 3, 133, 1450, 27, 97, 1, 1, 1, 1, 0.75, 0) Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3400, 3, 133, 1450, 27, 323, 0, 1, 1, 0, 0, 0) Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3400, 3, 133, 1450, 27, 324, 1, 1, 1, 1, 0.75, 0) Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1451, 28, '2010-05-08', '2010-04-30', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3401, 3, 133, 1451, 28, 104, 1, 1, 1, 1, 2, 0) Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3401, 3, 133, 1451, 28, 103, 1, 1, 1, 1, 3, 0) Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3401, 3, 133, 1451, 28, 102, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1451, 30, '2010-05-08', '2010-04-30', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3402, 3, 133, 1451, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1451, 27, '2010-05-08', '2010-04-30', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3403, 3, 133, 1451, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3403, 3, 133, 1451, 27, 97, 1, 1, 1, 1, 0.75, 0) Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3403, 3, 133, 1451, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1452, 31, '2010-05-08', '2010-05-05', 4, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3404, 3, 133, 1452, 31, 105, 1, 1, 12, 1, 4, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1452, 30, '2010-05-08', '2010-05-05', 2.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3405, 3, 133, 1452, 30, 107, 1, 1, 8, 1, 2.5, 0) Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3404, 3, 133, 1452, 31, 106, 2, 1, 12, 1, 3.5, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3405, 3, 133, 1452, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1452, 27, '2010-05-08', '2010-05-05', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3406, 3, 133, 1452, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3406, 3, 133, 1452, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3406, 3, 133, 1452, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1453, 29, '2010-05-08', '2010-05-07', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3407, 3, 133, 1453, 29, 112, 1, 1, 1, 1, 2, 0) Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3407, 3, 133, 1453, 29, 109, 0, 1, 1, 0, 0, 0) Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3407, 3, 133, 1453, 29, 110, 0, 1, 1, 0, 0, 0) Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3407, 3, 133, 1453, 29, 111, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1453, 30, '2010-05-08', '2010-05-07', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3408, 3, 133, 1453, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1453, 27, '2010-05-08', '2010-05-07', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3409, 3, 133, 1453, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3409, 3, 133, 1453, 27, 97, 1, 1, 1, 1, 0.75, 0) Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3409, 3, 133, 1453, 27, 323, 0, 1, 1, 0, 0, 0) Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1453, 285, '2010-05-08', '2010-05-07', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3410, 3, 133, 1453, 285, 2226, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3410, 3, 133, 1453, 285, 2227, 0, 1, 1, 0, 0, 0) Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3410, 3, 133, 1453, 285, 2228, 0, 1, 1, 0, 0, 0) Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3410, 3, 133, 1453, 285, 2230, 0, 1, 1, 0, 0, 0) Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1453, 66, '2010-05-08', '2010-05-07', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3411, 3, 133, 1453, 66, 2119, 0, 1, 24, 0, 0, 0) Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3411, 3, 133, 1453, 66, 2116, 0, 1, 1, 0, 0, 0) Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3411, 3, 133, 1453, 66, 2117, 0, 1, 30, 0, 0, 0) Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3411, 3, 133, 1453, 66, 2118, 0, 1, 40, 0, 0, 0) Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1454, 28, '2010-05-08', '2010-05-12', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3412, 3, 133, 1454, 28, 99, 1, 1, 1, 1, 1.5, 0) Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3412, 3, 133, 1454, 28, 100, 0, 1, 1, 0, 0, 0) Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3412, 3, 133, 1454, 28, 101, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1454, 30, '2010-05-08', '2010-05-12', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3413, 3, 133, 1454, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1454, 27, '2010-05-08', '2010-05-12', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3414, 3, 133, 1454, 27, 96, 2, 1, 1, 2, 1.5, 0) Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3414, 3, 133, 1454, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3414, 3, 133, 1454, 27, 323, 0, 1, 1, 0, 0, 0) Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3414, 3, 133, 1454, 27, 324, 0, 1, 1, 0, 0, 0) Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1455, 28, '2010-05-08', '2010-05-14', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3415, 3, 133, 1455, 28, 104, 1, 1, 1, 1, 2, 0) Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3415, 3, 133, 1455, 28, 103, 0, 1, 1, 0, 0, 0) Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3415, 3, 133, 1455, 28, 102, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1455, 30, '2010-05-08', '2010-05-14', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3416, 3, 133, 1455, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1455, 27, '2010-05-08', '2010-05-14', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3417, 3, 133, 1455, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3417, 3, 133, 1455, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3417, 3, 133, 1455, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1456, 31, '2010-05-08', '2010-05-19', 4, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3418, 3, 133, 1456, 31, 105, 1, 1, 12, 1, 4, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1456, 30, '2010-05-08', '2010-05-19', 2.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3419, 3, 133, 1456, 30, 107, 1, 1, 8, 1, 2.5, 0) Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3418, 3, 133, 1456, 31, 106, 0, 1, 12, 0, 0, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3419, 3, 133, 1456, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1456, 27, '2010-05-08', '2010-05-19', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3420, 3, 133, 1456, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3420, 3, 133, 1456, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3420, 3, 133, 1456, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1457, 29, '2010-05-08', '2010-05-21', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3421, 3, 133, 1457, 29, 112, 1, 1, 1, 1, 2, 0) Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3421, 3, 133, 1457, 29, 109, 0, 1, 1, 0, 0, 0) Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3421, 3, 133, 1457, 29, 110, 0, 1, 1, 0, 0, 0) Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3421, 3, 133, 1457, 29, 111, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1457, 30, '2010-05-08', '2010-05-21', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3422, 3, 133, 1457, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1457, 27, '2010-05-08', '2010-05-21', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3423, 3, 133, 1457, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3423, 3, 133, 1457, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3423, 3, 133, 1457, 27, 323, 0, 1, 1, 0, 0, 0) Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1457, 285, '2010-05-08', '2010-05-21', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3424, 3, 133, 1457, 285, 2226, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3424, 3, 133, 1457, 285, 2227, 0, 1, 1, 0, 0, 0) Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3424, 3, 133, 1457, 285, 2228, 0, 1, 1, 0, 0, 0) Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3424, 3, 133, 1457, 285, 2230, 0, 1, 1, 0, 0, 0) Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1457, 66, '2010-05-08', '2010-05-21', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3425, 3, 133, 1457, 66, 2119, 0, 1, 24, 0, 0, 0) Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3425, 3, 133, 1457, 66, 2116, 0, 1, 1, 0, 0, 0) Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3425, 3, 133, 1457, 66, 2117, 0, 1, 30, 0, 0, 0) Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3425, 3, 133, 1457, 66, 2118, 0, 1, 40, 0, 0, 0) Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1458, 28, '2010-05-08', '2010-05-26', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3426, 3, 133, 1458, 28, 99, 1, 1, 1, 1, 1.5, 0) Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3426, 3, 133, 1458, 28, 100, 0, 1, 1, 0, 0, 0) Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3426, 3, 133, 1458, 28, 101, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1458, 30, '2010-05-08', '2010-05-26', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3427, 3, 133, 1458, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1458, 27, '2010-05-08', '2010-05-26', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3428, 3, 133, 1458, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3428, 3, 133, 1458, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3428, 3, 133, 1458, 27, 323, 0, 1, 1, 0, 0, 0) Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3428, 3, 133, 1458, 27, 324, 0, 1, 1, 0, 0, 0) Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1459, 28, '2010-05-08', '2010-05-28', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3429, 3, 133, 1459, 28, 104, 1, 1, 1, 1, 2, 0) Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3429, 3, 133, 1459, 28, 103, 0, 1, 1, 0, 0, 0) Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3429, 3, 133, 1459, 28, 102, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1459, 30, '2010-05-08', '2010-05-28', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3430, 3, 133, 1459, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1459, 27, '2010-05-08', '2010-05-28', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3431, 3, 133, 1459, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3431, 3, 133, 1459, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3431, 3, 133, 1459, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1460, 31, '2010-05-08', '2010-06-02', 4, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3432, 3, 133, 1460, 31, 105, 1, 1, 12, 1, 4, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1460, 30, '2010-05-08', '2010-06-02', 2.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3433, 3, 133, 1460, 30, 107, 1, 1, 8, 1, 2.5, 0) Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3432, 3, 133, 1460, 31, 106, 0, 1, 12, 0, 0, 0) Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3433, 3, 133, 1460, 30, 108, 0, 1, 6, 0, 0, 0) 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1460, 27, '2010-05-08', '2010-06-02', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3434, 3, 133, 1460, 27, 96, 0, 1, 1, 0, 0, 0) Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3434, 3, 133, 1460, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3434, 3, 133, 1460, 27, 323, 0, 1, 1, 0, 0, 0) Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1461, 29, '2010-05-08', '2010-06-04', 2, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3435, 3, 133, 1461, 29, 112, 1, 1, 1, 1, 2, 0) Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3435, 3, 133, 1461, 29, 109, 0, 1, 1, 0, 0, 0) Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3435, 3, 133, 1461, 29, 110, 0, 1, 1, 0, 0, 0) Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3435, 3, 133, 1461, 29, 111, 0, 1, 1, 0, 0, 0) Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1461, 30, '2010-05-08', '2010-06-04', 1.5, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3436, 3, 133, 1461, 30, 108, 1, 1, 6, 1, 1.5, 0) 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1461, 27, '2010-05-08', '2010-06-04', 0.75, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3437, 3, 133, 1461, 27, 96, 1, 1, 1, 1, 0.75, 0) Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3437, 3, 133, 1461, 27, 97, 0, 1, 1, 0, 0, 0) Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3437, 3, 133, 1461, 27, 323, 0, 1, 1, 0, 0, 0) Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1461, 285, '2010-05-08', '2010-06-04', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3438, 3, 133, 1461, 285, 2226, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3438, 3, 133, 1461, 285, 2227, 0, 1, 1, 0, 0, 0) Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3438, 3, 133, 1461, 285, 2228, 0, 1, 1, 0, 0, 0) Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3438, 3, 133, 1461, 285, 2230, 0, 1, 1, 0, 0, 0) Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Create Order Header insert into supplier_order_header (school_num, schedule_num, menu_num, supplier_num, order_date, delivery_date, estimated_total, losses, actual_total, status, paid_date, cancelled_date) values (3, 133, 1461, 66, '2010-05-08', '2010-06-04', 0, NULL, NULL, 'Created', NULL, NULL) select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3439, 3, 133, 1461, 66, 2119, 0, 1, 24, 0, 0, 0) Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3439, 3, 133, 1461, 66, 2116, 0, 1, 1, 0, 0, 0) Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3439, 3, 133, 1461, 66, 2117, 0, 1, 30, 0, 0, 0) Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 insert into supplier_order_items (order_num, school_num, schedule_num, menu_num, supplier_num, supplier_product_num, online_qty, supplier_product_qty, package_qty, qty_ordered, estimated_cost, actual_cost) values (3439, 3, 133, 1461, 66, 2118, 0, 1, 40, 0, 0, 0) Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 10, supplier_product_qty = 1, package_qty = 1, qty_ordered = 10, estimated_cost = 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 10, supplier_product_qty = 1, package_qty = 1, qty_ordered = 10, estimated_cost = 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 10, supplier_product_qty = 1, package_qty = 1, qty_ordered = 10, estimated_cost = 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 10, supplier_product_qty = 1, package_qty = 1, qty_ordered = 10, estimated_cost = 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1442 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1442) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1442 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1442 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 Cheese Pizza ============================ Get Supplier Products: 6392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6392 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6392 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 11, supplier_product_qty = 1, package_qty = 1, qty_ordered = 11, estimated_cost = 16.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6393 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6393 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6394 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6394 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6395 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6395 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6396 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6396 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6397 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6397 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6398 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6398 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6399 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1442 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6399 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 2.25 where school_num = 3 and schedule_num = 133 and menu_num = 1442 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1443 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1443) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1443 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1443 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 Macaroni and Cheese ============================ Get Supplier Products: 6204 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6204 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6204 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 12 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6205 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6205 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6205 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6206 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6206 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6206 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6207 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6207 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6207 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6208 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6208 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6208 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6209 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6209 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6209 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 1, qty_ordered = 6, estimated_cost = 4.5 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6210 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6210 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1443 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6210 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1443 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1444 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1444) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1444 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1444 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 All Beef Hot Dog ============================ Get Supplier Products: 6247 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6247 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6247 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6248 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6248 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6248 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 9, supplier_product_qty = 1, package_qty = 8, qty_ordered = 2, estimated_cost = 5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6249 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6249 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6249 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6250 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6250 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6250 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6251 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6251 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6251 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 1, qty_ordered = 5, estimated_cost = 3.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6252 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6252 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1444 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6252 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1444 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1445 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1445) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1445 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1445 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 Veggie Sub Sandwich ============================ Get Supplier Products: 6239 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6239 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6239 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 8 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6240 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6240 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6240 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6241 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6241 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6241 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6242 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6242 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6242 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6243 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6243 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6243 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6244 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6244 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6244 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6245 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6245 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6245 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6246 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6246 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6246 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24388 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24388 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24388 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24394 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24394 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24394 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24400 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24400 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24400 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24405 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24405 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24405 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24410 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24410 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24410 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24415 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24415 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24415 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24420 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24420 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24420 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24425 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24425 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1445 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24425 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1445 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1446 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1446) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1446 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1446 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 Cheese Pizza ============================ Get Supplier Products: 6466 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6466 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6466 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 10, supplier_product_qty = 1, package_qty = 1, qty_ordered = 10, estimated_cost = 15 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6470 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6470 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6470 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 1, qty_ordered = 3, estimated_cost = 9 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6474 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6474 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6474 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6478 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6478 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6478 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6482 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6482 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6482 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6486 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6486 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6486 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6490 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6490 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6490 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6494 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6494 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1446 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6494 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 4, supplier_product_qty = 1, package_qty = 1, qty_ordered = 4, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1446 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1447 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1447) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1447 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1447 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 Macaroni and Cheese ============================ Get Supplier Products: 6211 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6211 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6211 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6215 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6215 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6215 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 6 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6219 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6219 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6219 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6223 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6223 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6223 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6227 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6227 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6227 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6231 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6231 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6231 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6235 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6235 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1447 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6235 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1447 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1448 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1448) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1448 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1448 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 All Beef Hot Dog ============================ Get Supplier Products: 6253 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6253 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6253 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 5, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6257 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6257 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6257 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 6, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6261 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6261 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6261 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6265 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6265 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6265 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6269 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6269 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6269 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6273 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6273 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1448 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6273 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1448 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1449 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1449) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1449 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1449 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 Veggie Sub Sandwich ============================ Get Supplier Products: 6277 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6277 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6277 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6281 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6281 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6281 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6285 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6285 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6285 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6289 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6289 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6289 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6293 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6293 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6293 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6297 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6297 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6297 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6301 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6301 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6301 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6305 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6305 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6305 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24389 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24389 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24389 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24395 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24395 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24395 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24401 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24401 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24401 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24406 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24406 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24406 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24411 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24411 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24411 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24416 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24416 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24416 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24421 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24421 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24421 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24426 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24426 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1449 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24426 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1449 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1450 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1450) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1450 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1450 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 Cheese Pizza ============================ Get Supplier Products: 6467 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6467 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6467 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6471 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6471 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6471 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6475 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6475 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6475 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6479 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6479 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6479 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6483 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6483 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6483 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6487 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6487 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6487 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6491 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6491 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6491 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6495 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6495 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1450 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6495 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1450 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1451 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1451) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1451 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1451 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 Macaroni and Cheese ============================ Get Supplier Products: 6212 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6212 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6212 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6216 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6216 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6216 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 3 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6220 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6220 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6220 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6224 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6224 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6224 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6228 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6228 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6228 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6232 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6232 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6232 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6236 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6236 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1451 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6236 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1451 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1452 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1452) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1452 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1452 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 All Beef Hot Dog ============================ Get Supplier Products: 6254 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6254 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6254 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6258 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6258 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 3.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6258 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 3, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6262 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6262 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6262 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6266 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6266 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6266 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6270 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6270 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6270 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6274 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6274 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1452 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6274 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1452 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1453 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1453) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1453 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1453 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 Veggie Sub Sandwich ============================ Get Supplier Products: 6278 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6278 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6278 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6282 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6282 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6282 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6286 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6286 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6286 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6290 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6290 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6290 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6294 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6294 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6294 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6298 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6298 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6298 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6302 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6302 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6302 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6306 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6306 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6306 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24390 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24390 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24390 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24396 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24396 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24396 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24402 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24402 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24402 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24407 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24407 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24407 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24412 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24412 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24412 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24417 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24417 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24417 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24422 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24422 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24422 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24427 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24427 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1453 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24427 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1453 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1455 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1455) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1455 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1455 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 Macaroni and Cheese ============================ Get Supplier Products: 6213 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6213 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6213 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6217 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6217 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6217 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6221 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6221 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6221 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6225 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6225 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6225 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6229 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6229 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6229 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6233 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6233 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6233 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6237 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6237 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1455 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6237 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1455 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1456 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1456) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1456 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1456 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 All Beef Hot Dog ============================ Get Supplier Products: 6255 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6255 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6255 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6259 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6259 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6259 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6263 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6263 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6263 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6267 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6267 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6267 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6271 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6271 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6271 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6275 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6275 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1456 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6275 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1456 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1457 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1457) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1457 Menu Items Query: 16 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1457 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 Veggie Sub Sandwich ============================ Get Supplier Products: 6279 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6279 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6279 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6283 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6283 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6283 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6287 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6287 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6287 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6291 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6291 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6291 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6295 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6295 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6295 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6299 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6299 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6299 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6303 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6303 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6303 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6307 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6307 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6307 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24391 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24391 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24391 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24397 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24397 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24397 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24403 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24403 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24403 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24408 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24408 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24408 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24413 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24413 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24413 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24418 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24418 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24418 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24423 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24423 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24423 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24428 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24428 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1457 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24428 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1457 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1458 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1458) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1458 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1458 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 Cheese Pizza ============================ Get Supplier Products: 6469 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6469 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6469 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6473 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6473 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6473 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6477 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6477 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6477 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6481 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6481 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6481 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6485 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6485 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6485 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6489 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6489 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6489 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6493 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6493 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6493 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6497 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6497 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1458 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6497 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1458 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1459 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Pasta Day (1459) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1459 Menu Items Query: 7 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1459 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 Macaroni and Cheese ============================ Get Supplier Products: 6214 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6214 Macaroni and Cheese select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6214 and hlmp.supplier_product_num = 104 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 104 Meat Ravioli ============================ Get Supplier Products: 6218 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6218 Meat Ravioli select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6218 and hlmp.supplier_product_num = 103 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 103 Spaghetti and Tomato Sauce ============================ Get Supplier Products: 6222 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6222 Spaghetti and Tomato Sauce select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6222 and hlmp.supplier_product_num = 102 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 28 and supplier_product_num = 102 Glazed Donut ============================ Get Supplier Products: 6226 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6226 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6226 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6230 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6230 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6230 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6234 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6234 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6234 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6238 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6238 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1459 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6238 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1459 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1460 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Hot Dog Day (1460) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1460 Menu Items Query: 6 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1460 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 All Beef Hot Dog ============================ Get Supplier Products: 6256 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6256 Beef Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 105 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 12, qty_ordered = 1, estimated_cost = 4 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 105 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6256 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Vegetarian Hot Dog ============================ Get Supplier Products: 6260 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6260 Vegetarian Hot Dog Weiners select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 106 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 12, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 31 and supplier_product_num = 106 Hot Dog Buns select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6260 and hlmp.supplier_product_num = 107 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 8, qty_ordered = 1, estimated_cost = 2.5 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 107 Glazed Donut ============================ Get Supplier Products: 6264 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6264 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6264 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6268 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6268 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6268 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6272 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6272 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6272 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6276 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6276 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1460 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6276 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1460 and supplier_num = 27 and supplier_product_num = 323 Menu Number: 1461 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Sub Day (1461) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1461 Menu Items Query: 18 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1461 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 Veggie Sub Sandwich ============================ Get Supplier Products: 6280 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6280 Veggie Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6280 and hlmp.supplier_product_num = 112 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 2 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 112 Cheese Sub Sandwich ============================ Get Supplier Products: 6284 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6284 Cheese Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6284 and hlmp.supplier_product_num = 109 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 109 Ham Sub Sandwich ============================ Get Supplier Products: 6288 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6288 Ham Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6288 and hlmp.supplier_product_num = 110 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 110 Turkey Sub Sandwich ============================ Get Supplier Products: 6292 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6292 Turkey Sub Sandwich select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6292 and hlmp.supplier_product_num = 111 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 29 and supplier_product_num = 111 Glazed Donut ============================ Get Supplier Products: 6296 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6296 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6296 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 6, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6300 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6300 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6300 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 0.75 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6304 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6304 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6304 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6308 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6308 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6308 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 27 and supplier_product_num = 323 Booster Juice - Berry Cream ============================ Get Supplier Products: 24392 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24392 Booster Juice - Berry Cream select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24392 and hlmp.supplier_product_num = 2226 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2226 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24393 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24393 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24393 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Strawberry Sunshine ============================ Get Supplier Products: 24398 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24398 Booster Juice - Strawberry Sunshine select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24398 and hlmp.supplier_product_num = 2227 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2227 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24399 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24399 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24399 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice - Tropical Tornado ============================ Get Supplier Products: 24404 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24404 Booster Juice - Tropical Tornado select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24404 and hlmp.supplier_product_num = 2228 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2228 Booster Juice Citrus Swirl ============================ Get Supplier Products: 24409 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24409 Booster Juice Citrus Swirl select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24409 and hlmp.supplier_product_num = 2230 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 285 and supplier_product_num = 2230 Yoplait Yogurt Tube (frozen) ============================ Get Supplier Products: 24414 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24414 Yoplait Yogurt Tube (frozen) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24414 and hlmp.supplier_product_num = 2119 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 24, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2119 Fruit Salad Packed in Fruit Juice ============================ Get Supplier Products: 24419 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24419 Fruit Salad Packed in Fruit Juice select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24419 and hlmp.supplier_product_num = 2116 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2116 Rice Krispy Square ============================ Get Supplier Products: 24424 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24424 Rice Krispy Square select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24424 and hlmp.supplier_product_num = 2117 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 30, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2117 Welch's 100% Fruit Snack (26g) ============================ Get Supplier Products: 24429 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 24429 Welch's 100% Fruit Snack (26g) select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1461 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 24429 and hlmp.supplier_product_num = 2118 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 40, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1461 and supplier_num = 66 and supplier_product_num = 2118 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 Menu Number: 1454 Schedule Record: select * from hotlunch_schedules where school_num = 3 and record_num = 133 and status = 'Active' Menu Date Record: - Savoury Pizza Day (1454) select * from hotlunch_menu_dates where school_num = 3 and schedule_num = 133 and record_num = 1454 Menu Items Query: 8 select * from hotlunch_menu_items where school_num = 3 and menu_num = 1454 order by sequence Delete Supplier Order Items: update supplier_order_items set estimated_cost = 0, online_qty = 0, supplier_product_qty = 0, qty_ordered = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 Cheese Pizza ============================ Get Supplier Products: 6468 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6468 Cheese Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6468 and hlmp.supplier_product_num = 99 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 update supplier_order_items set online_qty = 1, supplier_product_qty = 1, package_qty = 1, qty_ordered = 1, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 99 Ham and Pineapple Pizza ============================ Get Supplier Products: 6472 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6472 Ham and Pineapple Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6472 and hlmp.supplier_product_num = 100 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 100 Pepperoni Pizza ============================ Get Supplier Products: 6476 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6476 Pepperoni Pizza select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6476 and hlmp.supplier_product_num = 101 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 28 and supplier_product_num = 101 Glazed Donut ============================ Get Supplier Products: 6480 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6480 Glazed Donut select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6480 and hlmp.supplier_product_num = 108 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 6, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 30 and supplier_product_num = 108 2% Milk ============================ Get Supplier Products: 6484 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6484 2% Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6484 and hlmp.supplier_product_num = 96 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 update supplier_order_items set online_qty = 2, supplier_product_qty = 1, package_qty = 1, qty_ordered = 2, estimated_cost = 1.5 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 96 Chocolate Milk ============================ Get Supplier Products: 6488 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6488 Chocolate Milk select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6488 and hlmp.supplier_product_num = 97 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 97 Apple Juice Box ============================ Get Supplier Products: 6492 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6492 Apple Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6492 and hlmp.supplier_product_num = 323 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 323 Orange Juice Box ============================ Get Supplier Products: 6496 select * from hotlunch_menu_products where school_num = 3 and menu_item_num = 6496 Orange Juice Box select sum(qty) as ordered from hotlunch_order_items as hloi, hotlunch_menu_products as hlmp where hloi.school_num = 3 and hloi.schedule_num = 133 and hloi.menu_num = 1454 and hloi.menu_item_num = hlmp.menu_item_num and hloi.menu_item_num = 6496 and hlmp.supplier_product_num = 324 =================== Update Order Header update supplier_order_header set estimated_total = estimated_total + 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 select * from supplier_order_items where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324 update supplier_order_items set online_qty = 0, supplier_product_qty = 1, package_qty = 1, qty_ordered = 0, estimated_cost = 0 where school_num = 3 and schedule_num = 133 and menu_num = 1454 and supplier_num = 27 and supplier_product_num = 324