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

Database Practical File

The document contains an index listing 4 assignments related to database tables for employees, departments, software programs, and student studies. Assignment 1 contains 15 questions to retrieve information from an employee table. Assignment 2 has similar questions retrieving data from linked employee, department, and other tables. Assignment 3 contains questions analyzing employee salaries across departments. Assignment 4 queries details from programmer, software, and studies tables. Assignment 5 continues with additional complex queries across the tables.

Uploaded by

abhay Kumar Giri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Database Practical File

The document contains an index listing 4 assignments related to database tables for employees, departments, software programs, and student studies. Assignment 1 contains 15 questions to retrieve information from an employee table. Assignment 2 has similar questions retrieving data from linked employee, department, and other tables. Assignment 3 contains questions analyzing employee salaries across departments. Assignment 4 queries details from programmer, software, and studies tables. Assignment 5 continues with additional complex queries across the tables.

Uploaded by

abhay Kumar Giri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

INDEX

SR. NO. NAME SIGN

1 ASSIGNMENT 1-EMPLOYEE TABLE

2 ASSIGNMENT 2-EMPLOYEE, DEPARTMENT,


ALLOWANCE, GRADE TABLE

3 ASSIGNMENT 3- EMPLOYEE, DEPARTMENT,


ALLOWANCE, GRADE TABLE

4 ASSIGNMENT 4- PROGRAMMER, SOFTWARE,


STUDIES TABLE

Abhay Kumar GIRI


ASSIGNMENT 1
1. List the Emp name, doj from employee table.
2. List the names of Employee who is getting 1000 Rs.
3. List the name of emp who belong to Mathura and depart name is Marketing.
4. List the average salary of Amit.
5. List the name of the emp who are getting their salary between 800 and 2500.
6. List the experience of all the employees.
7. List the employees who are earning more than 1200 but less than 4000.
8. List the employees who have joined after 1-Jan-84 in the order of the joining date.
9. List the employees who are located at Mathura.
10. List the employees who are in sales dept.
11. List the departments that are located in Delhi.
12. List the employees who are not working in Delhi.
13. Find out how many employees are there in organization.
14. Find out the total salary of Amit.
15. Find out how many employees are working in the sales department.

1.

2.

Abhay Kumar GIRI


3.

4.

5.

6.

7.

Abhay Kumar GIRI


8.

9.

10.

11.

12.

Abhay Kumar GIRI


13.

14.

15.

Abhay Kumar GIRI


ASSIGNMENT 2
1. List the employee belonging to department 20.
2. List the employee who are earning more than 1200 but less than 4000.
3. List the employee who have joined after 1-Jan-84 in order of joining date.
4. List the employee who are either in Office or Manager position.
5. List the employee who are located in ‘NEWYORK’.
6. List the employee who are in Sales Department.
7. List the departments that do not have an employee.
8. List the employee who are earning more than Robert.
9. Find out how many employees are there in organization.
10. Find out the total salary paid to the employee.
11. Find out how many employee are working in Sales department.
12. What is the average salary paid to the employees?
13. What is the minimum salary paid in DEPT 30?
14. Display names and grades of employee based on their designation
DESIGNATION GRADE
Manager A
Officer B
Analyst C
Clerk D
15. Display the employees names and doj,joining date should be displayed in the
following format:26 JAN,NINTEEN NINETY-EIGHT.

Abhay Kumar GIRI


1.

2.

3.

4.

Abhay Kumar GIRI


5.

6.

7.

8.

9.

Abhay Kumar GIRI


10.

11.

12.

13.

14.

15.

Abhay Kumar GIRI


ASSIGNMENT 3
1. Find out how long an employee has worked in the organization in terms of
number of Days, Months &Year.
2. Display the total salaries department wise.
3. Display the maximum salaries in each department along with the name of
department. The column heading should be like this:
Dept_Name Max(Sum)
Hint : Use both the tables – Employee & Department.
4. Display the total salary( Salary+Sp_allowance_Conveyance) of each employee in
the order of total salary.
5. List the no. of Employees along with their department numbers in each
department.
6. List the department wise total salary.
7. List the number of employees in each designation in the descending order.
8. List the total salary, maximum and minimum along with the average salary of
each employee designation wise.
9. List the total salary, maximum and minimum along with the average salary of
each employee designation wise for department no.30.
10. List the total salary, maximum and minimum along with the average salary of
each employee designation wise for department no.30 and display only these rows
that have their average salary greater than 1000.
11. List the total salary of the employees for each designation department wise.
12. List the employee details such as his Employee no., Name, Date of Joining, Basic
Salary and Designation of department=’Marketing’.
13. List the employee details such as his Employee no., Name, Date of Joining, Basic
Salary and Designation for the employee working in location = ‘AMERICA’.
14. List the departments where there are no employee functioning.

Abhay Kumar GIRI


1.

2.

3.

Abhay Kumar GIRI


4.

5.

6.

7.

Abhay Kumar GIRI


8.

9.

10.

11.

12.

Abhay Kumar GIRI


13.

14.

Abhay Kumar GIRI


ASSIGNMENT 4
1. How many programmers have done the PGDCA course.
2. How much revenue has been earned through sales of packages in C.
3. Display the details of SOFTWARE developed by Ramesh.
4. Display the details of Package who’s sales CROSSED the 20000
5. Display the details of programmers knowing C
6. How many programmers don’t know PASCAL & C.
7. What are the languages known by the male programmers.
8. How many people draw 2000 to 4000.
9. Display the institute names from the STUDIES table without duplicates.
10. Display the name of the programmers who’s name starts with ‘A’ and the third
character is T.

Abhay Kumar GIRI


1.

2.

3.

Abhay Kumar GIRI


4.

5.

6.

7.

Abhay Kumar GIRI


8.

9.

10.

Abhay Kumar GIRI


ASSIGNMENT 5
1. Find out the selling cost average for package developed in Oracle.
2. Display the names, ages and experience of all programmers.
3. Display the name of those who have done PGDCA course.
4. What is the highest number of copies sold by a package?
5. Display the names & date of birth of all programmers born in April.
6. Display the lowest course fee.
7. How many programmers have done the DCA course.
8. How much revenue has been earned through the sale of packages developed in C.
9. How many programmers studied at Pentafour.
10. Find out the number of copies which should be sold in order to recover the
development cost of each package.
11. Display the details of packages for which the development cost has been
recovered.
12. What is the price of costliest software developed in VB?
13. How many packages were developed in Oracle?
14. How many programmers studied at PRAGATHI?
15. How many programmers paid 10000 to 15000 for the course?
16. What is the average course fee?
17. How many programmers know either C or Pascal?
18. How old is the oldest male programmer?
19. What is the average age of female programmers?
20. Calculate the experience in years for each programmer & display along with their
names in descending order.
21. Who are the programmers who celebrate their birthdays during the current
month?
22. How many female programmers are there?
23. What is the average salary?
24. Display the details of those who don’t know C, C++ or Pascal.
25. Display the costliest package developed by each programmer.

Abhay Kumar GIRI


1.

Abhay Kumar GIRI


2.

3.

4.

5.

Abhay Kumar GIRI


6.

7.

8.

9.

Abhay Kumar GIRI


10.

11.

Abhay Kumar GIRI


20.

13.

14.

15.

16.

Abhay Kumar GIRI


17.

18.

19.

20.

Abhay Kumar GIRI


21.

22.

23.

24.

25.

Abhay Kumar GIRI

You might also like