Viewing 7 posts - 16 through 22 (of 22 total)
September 21, 2011 at 5:46 am
declare @chr char
declare @chr1 char(1)
select LEN('1234567890abcdefghij0987654321xyz') -- = 33
-- when declared as CHAR or VARCHAR, default length of variable is 1, as shown.
set @chr = '1234567890abcdefghij0987654321xyz'
set @chr1 = '1234567890abcdefghij0987654321xyz'
select @chr...
September 14, 2011 at 6:55 am
Add a month to the startdate
declare @StartDate date
set @StartDate = '01-31-2010''
select DATEADD(mm, 1, @StartDate)
Repeat above code through any number of frequencies. Hope this helps.
July 26, 2010 at 6:30 am
Below is the psuedo code .... you may have to tweak it to your requirement. For more details, look up CTE in BOL and ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_6tsql/html/82fa9016-77db-4b42-b4c8-df6095b81906.htm for Using ROW_NUMBER() with PARTITION.
Below,...
March 22, 2010 at 11:27 am
you could insert your values into a table and return the table.
declare a table variable in the function, insert ur multiple values into that table variable and return thetable variable.
May 3, 2007 at 1:24 pm
Did you try using > and < instead of BETWEEN for the date range?
July 28, 2006 at 1:48 pm
Hello Ahmed,
If you have got the solution, please do post it here...i would love to learn this too....
Thanks.
June 13, 2005 at 9:14 am
Viewing 7 posts - 16 through 22 (of 22 total)