Professional Documents
Culture Documents
DBMSRXP 3
DBMSRXP 3
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 dairy milk 60 2
2 good day 25 4
3 boost 10 6
4 maggi 5 10
5 book 20 20
Count function
COUNT(PRICE)
COUNT(QUANTITY)
Sum function
SUM(PRICE)
120
SUM(QUANTITY)
42
Avg function
AVG(PRICE)
24
AVG(QUANTITY)
8.4
Max
function
MAX(PRICE)
60
MAX(QUANTITY)
20
Min function
MIN(PRICE)
MIN(QUANTITY)
Group by
Table created
Dept sum(sal)
It 130000
Ece 14000
Min function
MIN(PRICE)
Group by
Create table employ(sid int,name varchar(20),dept varchar(10),sal float);
Table created
Dept sum(sal)
It 130000
Ece 14000
Having
Dept sum(sal)
It 130000
Creating views