Hi, I'm currently working at The Robert Gordon University developing a database for holding information about students, and am having difficulty creating a specific query.
Basically, Students study many Modules, and for each Module submit many Courseworks. Each coursework submission contains a date of when it was submitted amounngst other things. There is also a field called "feedback sent". The query I am creating is based upon when "feedback sent" = No.
I want to display a list of all courseworks currently "in the system", (feedback not sent), listing the amount of days each one has been in the system, in a Descending order (highest first).
I understand to do this I would be looking to use the DateDiff Function, on the field "Date Submitted", and using the Date() function as todays date. However, I'm admittedly a newbie in SQL.
Any help would be greatfully appreciated, and I could email my database to anyone if that would make the problem easier to understand.
Thanks,
David
Basically, Students study many Modules, and for each Module submit many Courseworks. Each coursework submission contains a date of when it was submitted amounngst other things. There is also a field called "feedback sent". The query I am creating is based upon when "feedback sent" = No.
I want to display a list of all courseworks currently "in the system", (feedback not sent), listing the amount of days each one has been in the system, in a Descending order (highest first).
I understand to do this I would be looking to use the DateDiff Function, on the field "Date Submitted", and using the Date() function as todays date. However, I'm admittedly a newbie in SQL.
Any help would be greatfully appreciated, and I could email my database to anyone if that would make the problem easier to understand.
Thanks,
David