GROUPBY Assignment
GROUPBY Assignment
Create table EMP with the attributes Emp_ID, Emp_Name, job, Manager,
Hire_Date, Salary, Commission, and Dept. It is mandatory to enter employee ID
and the same can not be repeated. Every employee must have a name then only
their details can be entered in the table. Similarly, salary component can not be
left blank for any employee. Each employee belongs to either dept 10, 20, or 30.
Enter the records in the table as shown below:
E. Display the id and salary of all employees whose name has the letter ‘e’ and
‘l’.
F. Display the employees details whose commission data is unknown.
I. Display the the details of the employee who is getting minimum salary.
J. Display the details of the employee who works under the manager 7698 and
getting highest commission.
L. Display the dept and avg salary of the employees in dept wise manner.
M. Display the dept and avg salary of the employees in dept wise manner only
when avg salary > 2000.
N. Display the dept and avg salary of only those employees whose salary > 2000
in dept wise manner.
O. Display the dept and avg salary of only those employees whose salary > 2000
in dept wise manner only when avg salary < 3000.