I am wondering if any one knows away of performing the following in sql.
I have a table with 4 fields(id,start,stop,date,time) I am trying to perform a data integrity check on some info.
What I need is a script in either sql or php that will for each record determine if the stop time of the current record is equal to the start time of the next record. This of course would loop for a specific time frame. If the they are not equal it would continue to run but store the id of the records not equal in an array.
thanks