I have this query, which returns days of the week. The days of the week are 0-6(Mon-Fri).
select ID, DayOfWeek from MyTable
ID DayOfWeek
1 0
2 0
3 4
Is there a way to substitute an alias for each int DayOfWeek? The enum isn't stored in the database so I can't join.
I want to be able to write a query and have it look like this:
ID DayOfWeek
1 Monday
2 Monday
3 Friday