SI Stud name Subject Marks Pass/Fail
1 Sham Maths 40 P
1 Sham Physics 50 P
1 Sham Bio 20 F
2 Ram Maths 40 P
2 Ram Physics 50 P
2 Ram Bio 60 P

For the above data , write the SQL query for the student who passed in all the subjects . For eg : I want the data of only Ram coz he passed all subjects .

Answer Posted / guest

Select Stud_name
From Student_Table
Where Pass_Fail = P
Group by SI

Is This Answer Correct ?    6 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dbm cfg and db cfg file in db2 ?

1104


Give a brief description of db2 isolation levels?

689


What is bind plan?

702


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2504


List some fields from sqlca?

682






Which command is used to connect to a database in DB2 ? Give the Syntax.

689


What is drop table?

661


What do you mean by cursor?

684


What is a db2 collection?

688


Explain in brief how does db2 determine what lock-size to use?

674


What action db2 takes when a program aborts in the middle of a transaction?

742


What is consistency token in db2?

749


B37 abend during spufi?

1086


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

750


When do you specify the isolation level?

688