I added a new column to a table. The columns of the table are:
Identifier(unique identity but not joinable to the other table)
ClinicalID(int)
senttime(datetime)
orgID(int-new column)
I need to update the new column from a different table based on the sent time.
I should check on what date range the sent time falls and update the orgID accordingly.
Columns of the other table:
ClinicalIDentifier
org ID(int)
old orgID(int)
effectivefromtime
effectivethrutime
The issue I am facing is that if the senttime is > effective fromtime of the other table, it displayes the other org IDs of the same ClinicalID where the senttime is > effective fromtime.
I am stuck at comparing date ranges.
Please let me know if you require any further information
Got it!!
This works as of now.
Let me know if I need to make any corrections.
Thanks
vihar