1 Sep 2011
Updated: 1 Sep 2011
Rating: 4.00/5
Votes: 1
Popularity: 0.00
Licence: CPOL
Views: 6,940
Bookmarked: 1
Downloaded: 0
IF OBJECT_ID (N'dbo.GetIntervalStartDate', N'FN') IS NOT NULL DROP FUNCTION dbo.GetIntervalStartDate;GO--gets first day of interval date belongs toCREATE FUNCTION dbo.GetIntervalStartDate (@Date datetime,@IntervalType int = 0--0 - DAY, 1 - WEEK (Mon to Sun), 2 - MONTH, 3 -...
|