aplikasi database part 4
TRANSCRIPT
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