0
   

Type 1 Nested Query

 
 
Reply Fri 19 Jun, 2020 09:39 am
Based on the tables below:
PRODUCT(*PROD_ID*,PROD_NAME,SUPPLIER_ID,UNITPRICE,PACKAGE,ISDISCONTINUED)

ORDER ITEM(*ID*,ORDERID,PRODUCTID,UNITPRICE,QUANTITY)

You are required to list products with order quantities greater than 100 using Type 1 Nested query.
USING THIS FORMULA:
1. SELECT column-names
2. FROM table-name1
3. WHERE value IN (SELECT column-name
4. FROM table-name2
5. WHERE condition)

  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 396 • Replies: 1
No top replies

 
nzarar 17
 
  0  
Reply Fri 19 Jun, 2020 09:50 am
@nzarar 17,
select prod_name from product where productid in
(select prod_id from item where quantity > 100);
this is what i've done. Can you guys correct me if I'm wrong
0 Replies
 
 

 
  1. Forums
  2. » Type 1 Nested Query
Copyright © 2026 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/22/2026 at 11:15:00