Viewing 3 posts - 1 through 4 (of 4 total)
how to get a first week day start on Monday ignore <Set DateFirst>
----- start week date on Monday
declare @CurrentDate datetime
set @CurrentDate = '2016-07-24'
set datefirst 3
select dateadd(day,case when ((DATEPART(dw, @CurrentDate)...
July 27, 2016 at 4:23 am
other way to make progress bar for each 10% only
declare
@max-2 decimal(10,3)
, @CNT decimal(10,3)
, @ProgressBar varchar(250)
, @Percentage int
, @PercentageStep int
set @max-2 = 8745.458
set @CNT = 1.0
set...
December 14, 2013 at 8:20 am
Viewing 3 posts - 1 through 4 (of 4 total)