title: Query for students passed and not passed
body: <p>How to make a query to know whether a student passed or not, where each student has ten subjects and the pass grade for each subject is <code>(&gt;49)</code><br>
  Student to be passed, he/she has to pass in all the subjects.
  Any help please ?  </p>