practical exercises.pptx

4
Practical Exercises ( SQL )

Upload: abhinav-pandey

Post on 08-Dec-2015

212 views

Category:

Documents


0 download

DESCRIPTION

SQL Training Set

TRANSCRIPT

Page 1: Practical Exercises.pptx

Practical Exercises

( SQL )

Page 2: Practical Exercises.pptx

Exercise• Retrieve all columns, all rows.

1. Display the details of all employees2. Display the details of all departments.

• Retrieve specific columns, all rows.1. Display employee name, job title and salary of all

employees.• Retrieve specific rows, all columns.

1. Display details of all employees working in department 10.

2. Display details of all employees working as MANAGER.

Page 3: Practical Exercises.pptx

Exercise

• Use of DISTINCT clause.1. Display all jobs in the organization.2. Display numbers of all departments where

employees are working.• Use of Calculated fields.

1. Display details of all employees with their annual salaries.

Page 4: Practical Exercises.pptx

PRACTICAL Query sheet 11. Display the contents of EMP, DEPT tables.2. Display the details of all employees3. Display the details of all departments.4. Display employee name, job title and salary of all employees. 5. Display details of all employees working in department 10.6. Display details of all employees working as MANAGER.7. Display all jobs in the organization.8. Display numbers of all departments where employees are working.9. Display details of all employees with their annual salaries.10. Display details of all employees whose salary range is 1000 to 2000.11. Display details of all employees who are not working in department 10 and 30.12. Display the names and job titles of all employees whose salary is either 1000 or

3000 or 5000.13. Display employee number, salary and jobs of all employees of department 20.14. Display employee number and name of those employees who do not earn

commission.15. Display details of all employees who were hired before 1st Jan 1989.