Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a table where I have marks of students of all subjects, now I want to get rollno of those students who are not failed in even one subjects, I need to check that whether a students is pass in all subjects or not. how to do so plz help me...
Posted

1 solution

SQL
Select * from tblmarks WHERE marksubject1>40 AND marksubject2>40 AND marksubject3>40 AND marksubject4>40;

Something like this will work.
Since I do not have your table structure I can only guess the query.
 
Share this answer
 
v2
Comments
Gopal Rakhal 14-Apr-12 10:37am    
thanks, but i have not fixed number of subjects...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900