Professional Documents
Culture Documents
Creating table :
Table created.
Table created.
table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
USN NAME C
1 rao 8
2 kumar 7
3 roy 7
4 roy1 9
5 jai 5
1 g boss 1000
2 h HR 2000
3 a manager 2000
3 b teamlead 2500
4 d cteamlead 3500
1 20is41 2 pass
2 20is42 3 pass
3 20is42 1 fail
4 20is44 5 fail
5 20is43 5 pass
IN operator :
---------- ---------- --
2 kumar 7
4 roy1 9
Having clause :
ANNUAL_PACKAGE
--------------
2000
NAME C
---------- -
kumar 7
roy 7
---------- -
rao 8
roy1 9
jai 5
Aggregate functions :
SQL> select
max(annual_package),min(annual_package),count(annual_package),su
m(annual_package),avg(annual_package) from placement_details1;
MAX(ANNUAL_PACKAGE) MIN(ANNUAL_PACKAGE)
------------------- -------------------
3500 1000
COUNT(ANNUAL_PACKAGE)
SUM(ANNUAL_PACKAGE) AVG(ANNUAL_PACKAGE)
11000 2200
USN
----------
USN
----------
DESIGNATIO
----------
teamlead
DESIGNATION
----------
HR
manager
teamlead
teamlead
******************************