Admn - No Sname Gender DOB Stream Marks
Admn - No Sname Gender DOB Stream Marks
4. Write a program to insert value in “Class12” table using python interface with SQL.
Consider “Class12” table is created in the database “aps” (2 Marks)
Class12
5. Consider the table Employee table given below. Write commands in SQL for the following
questions. (4 Marks)
Employee
6. Consider the table Projects given below. Write commands in SQL for the following
questions. (4 Marks)
Projects
Field Name ID ProjName ProjSize Cost Startdate
(Primarykey)
Data type Integer Varchar Varchar Integer Date
Length 4 30 20 5
ID ProjName ProjSize Cost Startdate
7. Consider the table voter given below. Write commands in SQL for the following questions.
(4 Marks)
Voter
(i) Write SQL query to create the Voter table.
(ii) Write a query to insert values in to Voter Table.
(iii) Write the SQL query to display the information of all voters whose name ends
with alphabet H.
(iv) Write the SQL query to display the information of all voters in descending order
of Age.
(v) Select count(*) from voter where age<40;
(vi) select votername, city from voter where city in(“Surat”,” Mumbai”, “Banglore”);