You are on page 1of 3

TERM-II (2021-22)

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

Write SQL query to show the structure of table.


5. Write SQL query to Insert 10 records same as it is in image.

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.

18. Write SQL query to delete records whose deptno=10.

19. Write SQL query to add a new column Phno.

20. Queries for Aggregate functions-


SUM( ),AVG( ), MIN( ), MAX( ), COUNT( ) .

21. TEXT FUNCTIONS


( TRIM FUNCTION, SUBSTR FUNCTION, LEFT FUNCTION, RIGHT
FUNCTION , MID FUNCTION )
22. MATH FUNCTIONS
(POWER (), ROUND (), MOD () ).

23. DATE FUNCTIONS


NOW (), DATE (), MONTH (), MONTHNAME (), YEAR (), DAY (),
DAYNAME ()

24. Querying and manipulating data using Group by, Having,


Order by.

25. Create a table DEPT and show Cartesian Product, JOIN


(Cartesian Join, Equi Join, Natural Join)

(Section - C (Python MySql Connectivity)

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.

You might also like