File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,22 @@ where client_no in (
4646 where s_order_no in (
4747 select s_order_no
4848 from sales_order_details
49- where product_no = ' P00001'
49+ where product_no in (
50+ select product_no
51+ from product_master
52+ where description = ' CD DRIVE'
53+ )
5054 )
5155 );
5256-- 5. List the product_no and s_order_no of customers haaving qty ordered less than 5 from the order details table for the product "1.44 floppies".
5357select product_no,
5458 s_order_no
5559from sales_order_details
56- where product_no = ' P00001'
60+ where product_no in (
61+ select product_no
62+ from product_master
63+ where description = ' 1.44 floppies'
64+ )
5765 and qty_order < 5 ;
5866-- 6. Find the products and their quantities for the orders placed by 'Vandan Saitwal ' and "Ivan Bayross".
5967select product_no,
Original file line number Diff line number Diff line change @@ -479,14 +479,22 @@ where client_no in (
479479 where s_order_no in (
480480 select s_order_no
481481 from sales_order_details
482- where product_no = ' P00001'
482+ where product_no in (
483+ select product_no
484+ from product_master
485+ where description = ' CD DRIVE'
486+ )
483487 )
484488 );
485489-- 5. List the product_no and s_order_no of customers haaving qty ordered less than 5 from the order details table for the product "1.44 floppies".
486490select product_no,
487491 s_order_no
488492from sales_order_details
489- where product_no = ' P00001'
493+ where product_no in (
494+ select product_no
495+ from product_master
496+ where description = ' 1.44 floppies'
497+ )
490498 and qty_order < 5 ;
491499-- 6. Find the products and their quantities for the orders placed by 'Vandan Saitwal ' and "Ivan Bayross".
492500select product_no,
You can’t perform that action at this time.
0 commit comments