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

How to execute stored procedure in db2 command editor?

528


What is plan in cobol db2?

589


What is the connection string to connect to the DB2 Database ?

612


What is the reason behind not using select * in embedded sql programs?

601


What is the difference between using bind () and rebind () methods of naming class?

788






What is universal database?

617


What is load utility in db2?

665


Explain about rct in db2?

635


What does db2 blu stand for?

658


What does db2 mean?

584


Define data page.

628


What is schema in db2?

574


What is bind and rebind in db2?

646


What is db2 purescale?

545


What is netezza database?

573