G
Guest
Hi,
I have a table that I need to calculate the enddate field. I inherited this
database, and it is only now that the users need to calculate the enddate.
And of course, they need the endate to be retroactive.
The table is called tblPatientDispos. It is used to determine where
someonbe is at a particular date. The fields in the tableare Venue ID (pk),
DispoID, Venue, StartDate, EndDate. The EndDate should be the date before
the the next StartDate for the same DispoID.
A typical example of this the following:
VenueID DispoID StartDate EndDate
1123 4444 03/15/1999 ?
1679 4444 07/23/2004
How do I translate this into an SQL statement?
Any assistance would be appreciated greatly.
Thanks in advance.
I have a table that I need to calculate the enddate field. I inherited this
database, and it is only now that the users need to calculate the enddate.
And of course, they need the endate to be retroactive.
The table is called tblPatientDispos. It is used to determine where
someonbe is at a particular date. The fields in the tableare Venue ID (pk),
DispoID, Venue, StartDate, EndDate. The EndDate should be the date before
the the next StartDate for the same DispoID.
A typical example of this the following:
VenueID DispoID StartDate EndDate
1123 4444 03/15/1999 ?
1679 4444 07/23/2004
How do I translate this into an SQL statement?
Any assistance would be appreciated greatly.
Thanks in advance.