Having problems with SQL, what I want is sql alert that pulls off students that are year 6 and new to our system. Is there any function in SQL that I can pickup students that are greater than the late student.id that is in the system
So far I have got:
SELECT
STUDENT.FORENAME, STUDENT.SURNAME, to_char (STUDENT.DOB, 'DD/MM/YYYY'), STUDENT.ID, STUDENT.NCY
FROM
STUDENT
WHERE
STUDENT.NCY = 6
STUDENT.STUD_ID > ??LAST.STUD_ID?? (function that I am having probelms with)
Thank you
So far I have got:
SELECT
STUDENT.FORENAME, STUDENT.SURNAME, to_char (STUDENT.DOB, 'DD/MM/YYYY'), STUDENT.ID, STUDENT.NCY
FROM
STUDENT
WHERE
STUDENT.NCY = 6
STUDENT.STUD_ID > ??LAST.STUD_ID?? (function that I am having probelms with)
Thank you