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

Various SQL queries to extract information from the EMP and DEPT tables. Queries include listing employee details based on specific conditions, such as job title, hire date, and salary. Additionally, queries are provided to retrieve department details based on location and department number. Some queries involve updating the salary of employees and listing employees with unusual salary conditions.

Typology: Assignments

2020/2021

Uploaded on 11/21/2021

AMNA_FAISAL
AMNA_FAISAL 🇵🇰

2 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1. List all information of ‘Emp’ and ‘Dept’ tables.
EMP TABLE:
DEPT TABLE:
1. 2. List the empno, ename, jobtitle, and hiredate of employee from the employee table.
EMPNO, ENAME, JOBTITLE, AND HIREDATE
pf3
pf4
pf5

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.