Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

S 45

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Course Code Type Course Code Here

Database Management System


Description
1
College / Department:
LabExer No. 008
Online Education
Laboratory Exercise Page 1 of 1
Direction:
 Use the EMPLOYEES table to perform this activity.
 In each sample output per number, write the PL/SQL that will generate output per number as shown
below.
1. NAME MAX(SALARY)
--------------------- -----------
ZLOTKEY,ELENI 24000

2. COMPLETE NAME LOWEST MANAGER_ID


--------------------------------- -----------------
Alexander Surnname Is Hunold 100

3. COUNT(*)
----------
20
4. NO. OF MANAGER_ID
-----------------
19
5. NO. OF MANAGER_ID
-----------------
8

6. JOB_ID NO. OF JOB_ID SUM(SALARY) AVG(SALARY)


---------- ------------- ----------- -----------
IT_PROG 3 10200 5100
AC_MGR 1 12000 12000
AC_ACCOUNT 1 8300 8300
ST_MAN 1 5800 5800
AD_ASST 1 4400 4400
AD_VP 2 34000 17000
SA_MAN 1 10500 10500
MK_MAN 1 13000 13000
AD_PRES 1 24000 24000
SA_REP 3 26600 8866.66667
MK_REP 1 6000 6000
ST_CLERK 4 11700 2925

12 Rows selected.
7. MIN(LASTNA JOB_ID MAX(SALARY)
---------- ---------- -----------
ABEL SA_REP 11000
FAY MK_REP 6000

8. MAX(FIRSTN MANAGER_ID COUNT(SALARY) AVG(SALARY)


---------- ---------- ------------- -----------
KIMBERLEY 149 2 7800
WILLIAM 205 1 8300
BRUCE 102 1 6000
PAT 201 1 6000

9. NAME DEPARTMENT_ID
-------------------- -------------
DE HAANLEX 90
ABELELLEN 50

10. MIN(LASTNA MAX(FIRSTN SUM(SALARY) AVG(SALARY)


---------- ---------- ----------- -----------
DAVIES TRINA 17500 3500

You might also like