SQL Commands (Computer)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

WRITE SQL COMMANDS FOR THE FOLLOWING :

a) Enter a new record: S009, Swapan Pal, 11, E, 80.5, 15-8-1991 in the above table.
b) Re-arrange the records in descending order of Class and ascending order of Date of Birth.
c) Display the Name, Class, Section and Date Of Birth of the students who have either less than 80
Average Marks, or year of birth before 1993.
d) Display the Name, Student code and Date of Birth of those whose first character of name is K.
e) Display the Name, Student code and Date of Birth of those whose Name contains either of the
substrings ‘AY’ or ‘AV’ anywhere in the name.
f) Display the Different Sections present in the table student.
g) Display the Different Class with corresponding maximum and minimum AvgMarks for each class
h) Replace the Name Ajay Malhotra by “Ajit Mahapatra”.
i) Increase each of the Average Mark by 2.0
j) Display number of records present in the table student.
k) Display Number of students in each section who have got Average Marks more than 75.
l) Include a new column Address in the table student.
m) Delete the same column.
n) Remove the existing record(s) of all who are not from classes 11 or 12.
o) Display the Total Average Marks from the table for students born after 1989.

You might also like