Professional Documents
Culture Documents
CBSE
COMPUTER SCIENCE GRADE 12
WORKSHEET 2(SQL)
Name: Pooja Date:
Q1. Given the following table:
Table: STUDENT
AdNo Name Class Section Average
ID111 Anu 11 A 95
ID121 Balu 12 D 90
ID71 Leena 7 C 65
ID105 Madhu 10 B 75
ID75 Surpreeth 7 C 80
ID69 Beena 6 A 70
Write commands for the following:
a) To create the table Student.
create table student(
AdNo char(10),
Name CHAR(20),
Class integer,
Section CHAR(1),
Average integer
);
3. Display name and average of those students having less than 80.
7. Display details of the student with admission number ID111 or studying in class 12.
10. Display details of students of Grade 12 having average more than 80.
13. Display details of students whose Name begins with the character ‘B’.
18. Display all names having the 2nd character as ‘e’ and last character as ‘a’.