This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A view that creates a view of date information, in a range from 2000 to 2179. | |
| Use this view to perform date amd time operations would otherwise be difficult with standard T-SQL methods. | |
| */ | |
| CREATE VIEW [dbo].[Calendar] | |
| AS | |
| SELECT [Date] | |
| ,DATEPART(year,[Date]) AS [Year] | |
| ,DATEPART(month,[Date]) AS [Month] | |
| ,DATEPART(day,[Date]) AS [Day] |