Hello All,
I have two columns in a table (Table1), SamDate and DOW. SamDate contains a range of dates displayed ddd", "mmm d", "yyyy (i.e. Mon, Feb 26, 2015), and DOW contains a corresponding day code. The day codes are as follows
1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thursday
6 = Friday
7 = Saturday
What I am attempting to do is update the DOW column based on the SamDate column. Below is one attempt I have made to update the DOW column:
Update Table1
SET DOW = 1
WHERE SamDate = Sun;
My plan was to run the update query with the desired day code and SamDate day replaced as needed. This has not been working for me. Any suggestions are appreciated!
Thanks