1562648046892_SQL_Assignment (2)
1562648046892_SQL_Assignment (2)
Table:EMP
v) To display the employee name, his salary and 50% of his salary.
vi) To display the ename and comm. Header ename and comm should be displayed as Employee Name
and Commission respectively.
vii) To display employee number, name, salary, salary increase by 15%. Label the column as New Salary.
viii) To display ename and comm. Substitute value 0.00001 for null in comm.
ix) To display the output in the following format <employee name> earns $ <salary> monthly and
working as <job>
x) To display ename joined with job with heading “employee”, sal * 12 as “total salary”.
xi) To display employee name and salary for employees having their salary more than or equal to 2900.
xii) To display all the records having job other than MANAGER.
xiv) To list all the employee details having department number as 10 but with salary > 3000.
xv) To list all the employees whose department numbers are other than 30.
xvi) To list all the employees whose salary falls between 3000 to 4500
xvii) To list the names and salary of those employees who don’t have their salary in the range of 2500 to
4500
xviii) To display employee name, job and salary whose job is either MANAGER, SLAESMAN or
ANALYST.
xix) To display names of all those employees whose name contains ‘M’ as first alphabet, ‘L’ as third
alphabet.
xx) To display names of all employees whose have six letters employee name ending with ‘R’.
xxiii) To display employee name, salary and department number who are not getting commission.
xxiv) To list the employees in the alphabetical order of their names in ascending order.
xxv) To display the list of employees having salary more than 2500 in the descending order of employee
number.
xxvi) To list the entire relation in descending order of salary and ascending order of employee name.
xxvii) To display name, job, salary and hiredate of employees whose sal is between 1000 and 2000. Order
the query in ascending order of hiredate.
xxviii) To display employee name and comm. Header of comm. should be displayed as commission. The
output should be arranged in ascending order of comm using alias commission.
xxx) List details of all clerks who have not been assigned departments as yet.
xxxi) To display details of those employees who have four lettered name.
xxxii) To display the details of employees who earn more commission than their salaries.
xxxiii) To display the name of the employee who is having ‘L as any alphabet of the name.