Periodictest22017 18xiip
Periodictest22017 18xiip
3 GWALIOR
Periodic Assessment 2017-18
CLASS:- XI SUB:- IP
TIME: 1 ½ HRS MM- 40
----------------------------------------------------------------------------------------------------------------------------------
Q 1) Define and explain with example:- (5x2 = 10)
Q3) Given the details for the table EMPLOYEE , write the queries for the following problems:-
a) Create the table EMPLOYEE on the basis of the above information with all constraints. (2)
b) Add a new column Gender to the table EMPLOYEE with datatype as Varchar and size 1. (2)
c) Insert a new record to the table EMPLOYEE with the details :- (1)
(101,”AGNI”,”KALYANI”, 912345678, 50000,10)
d) Delete the entire table EMPLOYEE from the database (1)
e) To open the database named MYDB (1)
f) To increase the Empsal by 1000 for every record in employee table (1)
Q4) Consider the table EMP as given below and answer the following. Write SQL query for Q (i) to (viii)
and show the output for (ix) to (xii) (1 x 12 = 12)