I shall link my database down below.
I have a query called \'TestMonday1\' and what this does is return the student with the fewest \'NoOfFrees\' and insert the resu
This happens because Access returns all records in case of ties in ORDER BY
(all records returned have the same values of fields used in ORDER BY
).
You can add another field to ORDER BY
to make sure there's no ties. StudentID
looks like a good candidate (though I don't know your schema, replace with something else if it suits better):
ORDER BY
Availability.NoOfFrees, Availability.StudentID;