I don't know much about SQL - I'm just writing an RFID student registration scanner that interfaces to a database in SQL Server.
I'm sure this is quite easy to do but I could not find a solution for my problem.
I want to be able to do something like this in a basic form which won't work:
UPDATE Attendance
SET A1 = 'TRUE'
WHERE Student.ID = '3a0070c48'
AND Module.Day = 'Friday' ;
But the full SQL Update needs to be something like this:
UPDATE Attendance
SET A1 = 'TRUE'
WHERE Student.ID = '3a0070c48'
AND Module.Day = 'Friday'
AND '1100' BETWEEN Module.StartTime
AND Module.EndTime ;