Aplikasi database part 4
36
SQL Fundamental PART 4
-
Upload
muhamadedi25 -
Category
Documents
-
view
43 -
download
2
Transcript of Aplikasi database part 4
SQL Fundamental
PART 4
SQL DESC
Select MAX(salary), MIN(salary),AVG(salary) from employees;
Find the Highest, Lowest, and average salary in all employees
Select job_id MAX(salary),MIN(salary),AVG(salary) from employees GROUP BY job_id;
Find the Highest, Lowest, and average salary for each job type
Select job_id,count(job_id) from employees GROUP BY job_id;
Display the number of people with the same job
Select job_id,count(job_id) from employees Where job_id=‘IT_PROG’ GROUP BY job_id;
Display the number of people with the prompted user for job title