0% found this document useful (0 votes)
38 views

SQL Commands (Computer)

The document lists SQL commands to perform various operations on a student database table including: 1) Inserting a new record into the table. 2) Rearranging records by class in descending order and date of birth in ascending order. 3) Displaying records that meet criteria on average marks or year of birth. 4) Performing additional queries, updates, additions and deletions of records and columns in the student table.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

SQL Commands (Computer)

The document lists SQL commands to perform various operations on a student database table including: 1) Inserting a new record into the table. 2) Rearranging records by class in descending order and date of birth in ascending order. 3) Displaying records that meet criteria on average marks or year of birth. 4) Performing additional queries, updates, additions and deletions of records and columns in the student table.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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