Is it possible to track each date about what day (Monday through Sunday) it would be based on this code below?
DECLARE @DATA TABLE(
Movie1 DATETIME,
Movie2 DATETIME,
Movie3 DATETIME,
Movie4 DATETIME,
Movie5 DATETIME
)
INSERT INTO @DATA
SELECT '01/20/2010','02/15/2010','02/02/2010','03/31/2010','04/16/2010'
If you are asking how to return the text e.g. “Monday” based on the date, take a look at the DATENAME function on MSDN.