Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005

    Unanswered: Best way to filter through records

    Hi folks,

    I would like to know what is the best way to filter through records.

    I need to perform some calculations on student records. I have a query that gets the student and also displays qualifications they have gained in the past. The query is filtered by courses. So I end up getting more than one result for each student for each qualification they have.

    I need to filter by student so I just get all their qualifications, then calculate an average, and then move on to the next student.

    What is the best method for this?


  2. #2
    Join Date
    Apr 2002
    Toronto, Canada
    use AVG(qualification) and GROUP BY student | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts