Hi all,
I have a field in my table called "CurrentTime" that contains time as a string, ie: 09:34. I need to be able to use that variable in an SQL query, something like;
SELECT * FROM TABLE WHERE CurrentTime = the time now minus 600 seconds.
SELECT ScheduledTime, Flight, Logo, IATALookup, RemarksWithTime, Terminal, Gate FROM LHRFlightStats24 WHERE CurrentTime = NOWTIME - 600 AND ArriveDepart = 'O' AND Terminal = '1' AND FlightDisplay = 'Y' ORDER BY ScheduledTime ASC, IATALookup ASC
I know the above is totally incorrect but its just shows what I am trying to do.