The following select statement returns a list of students:
SELECT * FROM students2014 ORDER BY LastName
However, for each row I need to return data from another table (notes2014) to allow me to display the latest note for each student. The select statement would be as follows:
SELECT Note FROM notes2014 WHERE NoteStudent='$Student'
$Student indicates the ID for each student in the students2014 database. However this result only appears after the initial statement is queried.
So my question is, how can I run the second query within the first?