a.
Create a database named ‘student’
b. Create a table ‘student’ with following fields
i). Student id-------------integer not null primary key auto
increment
ii)Student name--------varchar (100)
iii) Student address-------varchar (100)
iv) student grade----------integer(int)
c. Insert any 6 records using ‘insert’ and ‘values’
command
d. Display all the records of all fields. (Use select
*)
e. Display all the records of fields student and
student name.
f. Display records of students whose name starts
with letter ‘a’.
g. Display records of students whose name ends at
letter ‘y’.
h. Display all the records of students whose grade
is 12. Use ‘where’ command.
i. Display all the records of students whose grade is
12 and who are from address “Kathmandu”. Use
‘and’ operator.
j. Update the student’s name with any other name
who has id 1.
k. Delete the record of student whose id is 3.
l. Display the records of students in sorted order
using field ‘student name’. Use ‘order by field name
asc/desc’.
m. Alter the table with following fields.
I. Add one more field student section---varchar
(100). [Use alter and add command]
ii.Change the size of field student address--
varchar (200)