0% found this document useful (0 votes)
13 views

Assignment 2

This document contains 16 SQL queries to retrieve information from EMP and DEPT tables in an Oracle database. The queries include: getting table descriptions; listing employee details, names/salaries within a range, and names/managers; listing jobs and employees in departments; calculating salary increases; concatenating fields; filtering on salary ranges and hire dates; ordering results; and filtering on specific letter in names or missing manager.

Uploaded by

sahilbisht
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Assignment 2

This document contains 16 SQL queries to retrieve information from EMP and DEPT tables in an Oracle database. The queries include: getting table descriptions; listing employee details, names/salaries within a range, and names/managers; listing jobs and employees in departments; calculating salary increases; concatenating fields; filtering on salary ranges and hire dates; ordering results; and filtering on specific letter in names or missing manager.

Uploaded by

sahilbisht
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT-2 OF DBMS Queries based on emp & dept provided by oracle 1. Get the description of EMP table. 2.

Get the description DEPT table. 3. List all employee details 4.List all employee names and their salaries, whose salary lies between1500/- and 3500/- both inclusive 4. List all employee names and their and their manager whose manager is 102 or 146 0r 149. 5. List all employees which starts with either J or T. 6. List all employee names and jobs, whose job title includes M or P 7. List all jobs available in employee table. 8. List all employees who belongs to the department 10 or 20. 9. List all employee names , salary and 15% rise in salary. 10. Display the last name concatenated with the job_id ,separated by a comma & space & the name of the column is Employee & Title. 11. Display the name & salary of all those employee whose salary is not in the range of 5000 & 12,000. 12. Display the employee name,job_id, who are hired between February 20,1998 & may 1,1998. 14.Display the last name & department of all employees in department 20 & 50 in alphabetical order. 15.Display the name of all those employees who do not have manager. 16 .isplay the name of all employees where the third letter of the name is a.

You might also like