Practical File XII Computer SC 2024-25
Practical File XII Computer SC 2024-25
10. Write a menu driven program to implement the functions of a stack (PUSH and
POP). Display the value of top and content in stack after each operation. The
stack must consist of a single string (at least 8-10 characters) input by the user.
11. Write a menu driven program to implement the functions of a stack (PUSH and
POP). Display the value of top and content in stack after each operation. The
stack must consist of records, where each record comprises of stock_id,
stock_name and stock_price.
Page 2 of 4
SQL Queries
16. With reference to the following relations (tables) EMPLOYEE and JOB complete all
the queries in your practical file.
Create following tables EMPLOYEE and JOB such that Empno and Sno are not null
and unique, name is never blank, Area and Native place is valid, hobby, dept is not
empty.
Table: EMPLOYEE
1. Show empno, name and salary of those who have Sports as hobby.
2. Show name of the eldest employee.
3. Show number of employee area wise.
4. Show youngest employees from each Native place.
5. Show Sno, name, hobby and salary in descending order of salary.
6. Show the hobbies of those whose name pronounces as ‘Abhay’.
7. Show the appointment date and native place of those whose name starts with ‘A’ or
ends in ‘d’.
8. Show the salary expense with suitable column heading of those who shall retire after
20-jan-2006.
9. Show an additional burden on the company in case the salary of employees having a
hobby as sports, is increased by 10%.
10. Show the hobby of which there are 2 or more employees.
Page 3 of 4
11. Show how many employee shall retire today if maximum length of service is 20
years.
12. Show those employee name and date of birth who have served more than 17 years as
on date.
13. Show names of those who earn more than all of the employees of Sales dept.
14. Show names of those who earn more than at least one of the employees of Marketing
dept.
15. Increase salary of the employees by 5 % of their present salary with hobby as Music
or they have completed atleast 3 years of service.
16. Show the maximum salary and the hobby of employee.
17. Count the number of employees in each department.
18. To display the maximum, minimum, sum and average salary of each department.
19. To display ename in lower case and job in upper case.
20. To display employees name, salary and Area of all the employees working in Agra
21. Add a new tuple(row) in the table essentially with hobby as Music.
22. Insert a new column email in job table
23. Create a table with values of columns empno, name, and hobby.
24. Erase the records of employee from job table whose hobby is not Sports.
25. Remove the table EMPLOYEE.
Page 4 of 4