Hi,
I have 2 tables, one called timeslot, the other timeslotChanged.
timeslot has the date fields:
1)date(current timeslot date)
2)originalCreationDate (same as date if date hasn't been changed)
3)lastChangedDate (same as date if date hasn't been changed)
timeslotChanged has the date fields:
1)date(current timeslot date)
2)lastChangedDate
3)creationDate (original creation date)
What I want to do is query the database to select the previous timeslots from a certain date but NOT including changes made after that date. Therefore it should produce the timeslots that were either not changed, or the timeslots as they were on that date (they may have been changed afterwards, but I do not want them).
I hope you understand this dilemma.
I have 2 tables, one called timeslot, the other timeslotChanged.
timeslot has the date fields:
1)date(current timeslot date)
2)originalCreationDate (same as date if date hasn't been changed)
3)lastChangedDate (same as date if date hasn't been changed)
timeslotChanged has the date fields:
1)date(current timeslot date)
2)lastChangedDate
3)creationDate (original creation date)
What I want to do is query the database to select the previous timeslots from a certain date but NOT including changes made after that date. Therefore it should produce the timeslots that were either not changed, or the timeslots as they were on that date (they may have been changed afterwards, but I do not want them).
I hope you understand this dilemma.