Академический Документы
Профессиональный Документы
Культура Документы
2005
2003
2002
2006
2001
2004
2009
Item
Sharpener Classic
Ball Pen 0.25
Gel Pen Premium
Gel Pen Classic
Eraser Small
Eraser Big
Ball Pen 0.5
Scode
Qty
23
60
22
50
21
150
21
250
22
220
22
110
21
180
Table : STORE
Rate
8
25
12
20
6
8
18
sname
Premium Staioners
Soft Plastics
Tera Supply
LastBuy
30-Jun-09
1-Feb-10
24-Feb-10
11-Mar-09
19-Jan-09
2-Dec-09
3-Nov-09
Display details of all the items in the STORE table in ascending order of lastbuy.
Select * from STORE order by lastbuy;
Display Itemno and itemname of those items from STORE table whose rate is more
(iii)
than 15 rrupees.
Select itemno,item from STORE where rate > 15;
Display details of those items whose supplier code (scode) is 22 or Quantity in Store
(iv)
(v)
table STORE.
Select scode, min (rate) from STORE group by scode;
Display item name, qty of items of supplier Tera Supply.
Select item,qty from STORE S, Suppliers P
where (S.scode=P.scode and P.sname='Tera Supply';
Table: WORKER
ECOD
E
11
NAME
DESIG
PLEVEL
DOJ
DOB
13- Sep-
23-Aug-
12
13
15
18
or
Chander Nath Operato
r
Fizza
Operato
r
Ameen
Mechani
Ahmed
c
Sanya
Clerk
P003
P003
P002
P002
2004
22-Feb2010
14-Jun2009
21-Aug2006
19-Dec2005
1981
12-Jul1987
14-0ct1983
13-Mar1984
09-Jun1983
PAY
26000
22000
12000
ALLOWANCE
12000
10000
6000
SQL> create table PAYLEVEL (plevel char (5), pay decimal, allowance decimal);
SQL> insert into paylevel values ('P001',26000,12000);
SQL> insert into paylevel values('P002',22000,10000);
SQL> insert into paylevel values('P003',12000,6000);
PLEVEL
-----------P001
P002
P003
NAME
PAY
-----------------------------Radhe Shyam
26000
Chander Nath 12000
PAY+ALLOWANCE
4
-----------P003
-------------------------------18000
Table: PROUDCT
PID
TP01
FW05
BS01
SH06
FW12
Productnam
e
Talcum Powder
Face Wash
Bath Soap
Shampoo
Face Wash
Manufact
urer
LAK
ABC
ABC
XYZ
XYZ
Price
40
45
55
120
95