SQL(Practical)
SQL(Practical)
MySQL Practical
Q1. Consider the following Table and write the answers and queries:
Consider the following table STUDENT
Table: Student
Ans. Alter
ii. Display the records of student who have obtained A and B grade
Select * from student where grade=’A’ or grade=’B’
ix. Display the records of student whose stipend value is not available.
Select * from student where stipend is NULL;
x. Add a new record in the table as
9 KANIKA 600 MEDICAL 89.9 A 12 B
Insert into student values(9, ‘KANIKA’, 600, ‘ MEDICAL’ 89.9, ‘ A’,
‘12 B’)
Q2. Give the output of the following on the basis of student Table