Table: ITEMS
| CODE | INAME | QTY | PRICE | COMPANY | TCODE |
| 1001 |
DIGITAL PAD 12i |
120 | 11000 | XENITA | T01 |
| 1006 |
LED SCREEN 40 |
70 | 38000 | SANTORA | T02 |
| 1004 |
CAR GPS SYSTEM |
50 | 21500 | GEOKNOW | T01 |
| 1003 |
DIGITAL CAMERA 12X |
160 | 8000 | DIGICLICK | T02 |
| 1005 |
PEN DRIVE 32GB |
600 | 1200 | STOREHOME | T03 |
Table: TRADERS
| TCode | TName | CITY |
| T01 | ELECTRONIC SALES | MUMBAI |
| T03 | BUSY STORE CORP | DELHI |
| T02 | DISP HOUSE INC | CHENNAI |
(a) To display the details of all the items in the ascending order of item names (i.e. INAME).
(b) To display item name and price of all those items, whose price is in range of 10000 and 22000 (both values inclusive).
(c) To display the number of items, which are traded by each trader. The expected output of this query should be:
T01 2
T02 2
T03 1
(d) To display the price, item name and quantity (i.e. qty) of those items which have quantity more than 150.
(e) To display the names of those traders, who are either from DELHI or from MUMBAI.
(f) To display the names of the companies and the names of the items in descending order of company names.
(g1) Select max(price), min(price) from items;
(g2) Select price*qty amount from items where code=1004;
(g3) Select distinct tcode from items;
(g4) Select iname, tname from items i, traders t where i.tcode=t.tcode and qty <100;