New to the forum and new to T-SQL
I'm trying to add a column to the results of query that shows a text string representing the day of the week.
Expand|Select|Wrap|Line Numbers
- Select Activity.StartDateTime as DAY
I know it's possible to return an integer which represent the day of the week, and I know there's a way to specify which day of the week you want to call the first. Typically in the US the first day of the week is Sunday I think, but here in the UK it's Monday.
Thing is, I don't just need an integer, I need a string that represents the abbreviated form of the actual name of the day.
eg
MON = Monday
TUE = Tuesday
etc etc
Can anyone help please? Don't know where to start.
Bob