Professional Documents
Culture Documents
Practical File
Session : 2016 – 2017
MySQL queries and NetBeans
Submitted By : Submitted To :
Name – Shweta Mr. Rajeev Jaiswal
Class – Xi Science (P.G.T. Computer)
Roll No. - 38
ACKNOWLEDGEMENT
I owe my gratitude to Mr. Rajeev Jaiswal,
P.G.T. Computer of Doon valley Public
School for the help and guidence that he
offered for my practical work. I was
exceptionally fortunate to be with him as
his ideas have contributed much to this
practicle file report.
I am also thankful to “Mr. G.K
Shimal”,Principal, DOON VALLEY
PUBLIC SCHOOL, GARHI CANTT,
DEHRADUN who has provided a well
equiped lab with all the latest softwares and
other facilities to me. (SHWETA)
CERTIFICATE
This is to certify that “PRACTICAL FILE REPORT” of
“INFORMATICS PRACTICES (065)” being submitted
by Shweta of class XI Science for terminal/ annual
examination represent her own work carried out under
my supervision and guidance.
During the practical work her approach towards the
subject is sincere and logical.
Ans. Insert into student values (1, “Karan”, 400.00, “Medical”, 78.5, ‘B’,
’12 B’) ;
Q1.(c) Write SQL commands for the following on the basis of the given
table :
(i) To display the list of all non – medical students having average
marks more than 90 ?
Ans. MySQL > Select from student where stream = non – medical
and avg. Mark > 90:
(ii). To display a report listing in name , stipened , stream and
amount of stipened received in a year assuming that the stipened is
paid every month ?
S. NAME STIPENED STREAM AVG. GRADE CLASS
NO. MARK
1 Karan 400.00 Medical 78.5 B 12 B
2 Divakar 450.00 Commerce 89.2 A 11 C
3 Divya 300.00 Commerce 68.6 C 12 C
Ans . MySQL > Select no. ,name ,stipened from student where class=
12 order by stipened ;
(iv). To l ist all students sorted by avg. Mark in descending order?
Ans. MySQL > Select no. ,name ,stipened from student order by avg.
Mark desc ;
(v). To list all the student having avg. Mark more than 70 and less than
90 ?
S. NAME STIPENED STREAM AVG. GRADE CLASS
NO. MARK
1 Karan 400.00 Medical 78.5 B 12 B
2 Divakar 450.00 Commerce 89.2 A 11 C
3 Divya 300.00 Commerce 68.6 C 12 C
Ans. MySQL > Select *from student where avg. Mark > 70 and <90 ;
(vi) To display the records of all the students whose name last letter is ‘n’ ?
S. NAME STIPENED STREAM AVG. GRADE CLASS
NO. MARK
1 Karan 400.00 Medical 78.5 B 12 B
2 Divakar 450.00 Commerce 89.2 A 11 C
3 Divya 300.00 Commerce 68.6 C 12 C
Ans. MySQL >Select no. name, stipened, stream from students where
grade = ‘B’ and avg. mark > 75.
(viii) To list all the students of commerce stream having stipened more than
350 ?
S. NAME STIPENED STREAM AVG. GRADE CLASS
NO. MARK
1 Karan 400.00 Medical 78.5 B 12 B
2 Divakar 450.00 Commerce 89.2 A 11 C
3 Divya 300.00 Commerce 68.6 C 12 C
Ans. MySQL > select name from student where name like ‘_ i%’:
(x) To display the list of all students contaning ‘n’ as a letter in the table ?
Ans. MySQL > Select name from student where name like ‘%n%’: