Class XII CS Term2 - Board Practical Record Programs 2024-25
Class XII CS Term2 - Board Practical Record Programs 2024-25
NACHARAM
Term-II PRACTICAL RECORD PROGRAMS SUB: COMPUTER SCIENCE CLASS: XII
2024-25
iii. LIST all DDL, DML, DCL and TCL commands in SQL
i.
17. Write SQL Queries for the given below questions using STUDENT table:
i. Write SQL queries to create the above table by using create and insert commands.
ii. To display the name of all GAMES with their GCodes
iii. To display details of those GAMES which are scheduled between 02-Mar2014 and
10-Dec-2019.
iv. To display the content of the GAMES table in ascending order of Schedule Date
v. To display sum of Prize Money for each Type of GAMES.
19. Write SQL Query to create the tables CARDEN and CUSTOMER and write given SQL
commands.
Table: CARDEN
Table: CUSTOMER
i. Write SQL commands to create the above tables and insert the records in it as
given above
ii. To display the names of all the silver coloured cars
iii. To display name of the car, make and capacity of cars in descending order of
their seating capacity
iv. To display the highest charges at which a vehicle can be hired from CARDEN
v. To display the customer name and the corresponding name of the cars hired by
them
vi. To count and display colour from the table carden
vii. Update the record cname Raj Kumar where code=1002
viii. Add a new column CTYPE into the table customer
20. Write SQL queries based on the below given COLOR and SHADES tables.
RED LIGHT
GREEN CYAN
BLIE SILVER
21. Write a Python Program to integrate MYSQL with Python by inserting records to Emp
table and display the records. (EMPNO, EMPNAME, EMPSALARY, EMPDEPT)
22. Write a Python Program to integrate MYSQL with Python to search an Employee using
EMPID and display the record if present in already existing table EMP, if not display the
appropriate message.