Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Date Column to DayOfWeek Column

$
0
0

Hi.

I've got a table that has a Date field in YYYY-MM-DD format and another column called DayOfWeek.  What I want to do is based upon the Date field the tsql will populate the DayOfWeek with the correct value.  The DATENAME(DW,'YYYY-MM-DD') does return the right value, but I can't figure out how to update the entire table...

Apologize for the noob question... Thanks.

- Michael


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>