0% found this document useful (0 votes)
8 views3 pages

Practical No. 14 Implement Queries Using Aggregate Functions

Uploaded by

mivavov105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Practical No. 14 Implement Queries Using Aggregate Functions

Uploaded by

mivavov105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

select * from parth;

E_ID E_NAME E_SALARY D_ID

---------- -------------------- ---------- ----------

1 Parth 500 100

2 Nakul 1 200

3 Om 400 300

4 Tanmay 450 100

SQL> select * from dhake;

D_ID D_NAME

---------- --------------------

100 HR

200 SM

300 TL

SQL> select AVG(E_salary) from parth;

AVG(E_SALARY)

-------------

337.75

SQL> select SUM(E_salary) from parth;


SUM(E_SALARY)

-------------

1351

SQL> select MIN(E_salary) from parth;

MIN(E_SALARY)

-------------

SQL> select MAX(E_salary) from parth;

MAX(E_SALARY)

-------------

500

SQL> select COUNT(E_salary) from parth;

COUNT(E_SALARY)

---------------

SQL> select COUNT(*) from parth;

COUNT(*)
----------

SQL> commit;

Commit complete.

You might also like