Professional Documents
Culture Documents
CLASS :- XII
SUBJECT:- C S (083)
PRACTICAL FILE PROGRAM
(Section- A: - Python)
Program 1:- Write a menu based program to perform the operation on stack in
python.
Program 2:- Write a menu based program to maintaining Book details like bcode,
btitle and price using stacks in python.
Program 3:- Write a menu based program to add, delete and display the record of
hostel using list as stack data structure in python. Record of hostel contains the
fields: Hostel number, Total Students and Total Rooms.
(Section-B :- MY SQL)
1. Write SQL query to create a database Employee.
2. Write SQL query to open database Employee.
3. Write SQL query to create following Table name empl
6. Write SQL query to display all the records from table empl.
7. Write SQL query to display EmpNo and EName of all employees from the table
empl.
8. Write SQL query to display Ename, Sal, and Sal added with comm from table
empl.
9. Write SQL query to display Ename, Sal, and deptno who are not getting
commission from table empl.
10. Write SQL query to display Eno, Ename ,Sal, and Sal*12 as Annual Salary
whose commission is not NULL from table
11. Write SQL query to display the details of employees whose name have only
four letters.
12. Write SQL query to display name, job title and salary of employee who do not
have manager.
13. Write SQL query to display the name of employee whose name contains “A” as
third letter.
14. Write SQL query to display the name of departments. Each department
should be displayed once (DISTINCT).
15. Write SQL query to display the name and salary of those employees whose
salary is between 35000 and 40000. (BETWEEN)
16. Write SQL query to display tables data according to ascending order of
sal. 17. Write SQL query to change EName MITA by MIRA.
26. Program to connect with database and store record of employee and display
records.
27: Program to connect with database and update the employee record of entered
empno.
28. Program to connect with database and search employee number in table
employee and display record, if empno not found display appropriate message.
29. Program to connect with database and delete the employee record of entered
empno.