Practical Record SQL
Practical Record SQL
Practical Record SQL
17. Create a table Student with the following fields and insert at least 5 records into the
table except for the column Total.
Roll_Number Integer Primary key
Name Varchar (25)
Batch Varchar (15)
Mark1 Integer
Mark2 Integer
Mark3 Integer
Total Integer
a. Update the column Total with the sum of Mark1, Mark2 and Mark3.
b. List the details of students in Commerce batch.
c. Display the name and total marks of students who are failed (Total < 90).
d. Display the name of students in alphabetical order and in batch based.