Q1.
Write SQL queries on the basis of following table:
Relation: Student
Name Class Fee Gender DOB
Rahul XII 1200 M 2005-02-01
Mehul XII 1200 M 2004-12-11
Manisha XI 1050 F 2006-10-12
Sujoy XI 1050 M NULL
Sonakshi XII 1200 F 2005-09-19
Suman X 950 F 2008-06-16
Firstly, create a database named as college and then create a
table named as student. Insert the above-mentioned records
into table student then solve the following problems---
i. Display all records from table student.
ii. List names of all students from table student.
iii. List name and class of all students from table student.
iv. List all students studying in class XII.
v. List names of male students.
vi. Show information of students having fee more than 1000.
vii. Show name, fee and class of students having fee below or
equal to 1100.
viii. View the complete structure of student table.
ix. show database and table.
x. Delete record from the table whose name is Rahul.