Hey guys,
I am stucking trying to create a SQL update statement that will do the
following:
Assign a discharge date = three days after the admit date.
The kicker is they want SQL to wait 3 days after the admit date
before it assigns the discharge date.
I thought about using this statement:
UPDATE Patients SET
Visit_Discharge Date=Visit_Admi tDate + 3
The problem here is it would assign the discharge date just whenever
the script is run. If a person was admitted today, it would give them
a discharge date of May 31st, but I don't want it to assign the
discharge date until May31th.
IS there anyway to do this?
Thanks!
I am stucking trying to create a SQL update statement that will do the
following:
Assign a discharge date = three days after the admit date.
The kicker is they want SQL to wait 3 days after the admit date
before it assigns the discharge date.
I thought about using this statement:
UPDATE Patients SET
Visit_Discharge Date=Visit_Admi tDate + 3
The problem here is it would assign the discharge date just whenever
the script is run. If a person was admitted today, it would give them
a discharge date of May 31st, but I don't want it to assign the
discharge date until May31th.
IS there anyway to do this?
Thanks!
Comment