I have the following table (example):
RESEARCH | START_DATE | END_DATE | STATUS
a | 2013-11-10 19:00:00 | 2013-11-11 12:00:00 | Ready
b | 2013-11-12 02:30:00 | 2013-12-01 13:30:00 | Ready
c | 2013-11-05 07:00:00 | 2013-12-10 15:50:00 | Running
I need to change the status of researches from Ready to Running when START_DATE is reached, and from Running to Finished when END_DATE is reached.
Is there a way of doing this using only SQL Server 2008 R2 Express?