Docsity

SQL Queries on EMP and DEPT Tables, Assignments of Database Management Systems (DBMS)

Partial preview of the text

Download SQL Queries on EMP and DEPT Tables and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

  1. List all information of ‘Emp’ and ‘Dept’ tables. EMP TABLE: DEPT TABLE:
    1. List the empno, ename, jobtitle, and hiredate of employee from the employee table. EMPNO, ENAME, JOBTITLE, AND HIREDATE
    1. List the name,salary of the employees who are clerks. NAME, SALARY:
    1. List the name,job,salary of every employee joined on ‘december 17,1980’, Select ENAME, SAL, JOB from emp where HIREDATE='17-DEC-1980';
    1. List name and annual salary of all the employees. NAME AND ANNUAL SALARY
    1. List the department name & deptno for departments having deptno.>= DEPARTMENT NAME & DEPTNO

10.11. List the name,salary,commision of the employees where commision is greater than their salary. 11.12. List the name and empno of managers who earn more than 2000.display the result in alphabetical order of the name. 12.13. List the details of the employees in the depts of 10 & 20 in the order of empno.