Skip to content

Commit 14f16ff

Browse files
committed
remove some mistakes
1 parent c0afaff commit 14f16ff

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

dbms/6.sql

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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".
5357
select product_no,
5458
s_order_no
5559
from 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".
5967
select product_no,

dbms/all.sql

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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".
486490
select product_no,
487491
s_order_no
488492
from 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".
492500
select product_no,

0 commit comments

Comments
 (0)