Viewing 11 posts - 1 through 11 (of 11 total)
@dwain.c
Thank you...it worked...:)
SELECT ID, FID, HC, VC, SN, updateddate
FROM
(
SELECT ID, FID, HC, VC, SN, updateddate
,rn=ROW_NUMBER() OVER (PARTITION BY...
November 25, 2013 at 8:38 pm
DECLARE @d varchar(6) = '20114'
SELECT try_convert(date, substring(@d, 1, 4) +
CASE WHEN len(@d) = 5 THEN '0' ELSE '' END +
substring(@d, 5, 2) + '01')
This worked but I am not...
July 24, 2013 at 9:31 am
DECLARE @d varchar(6) = '20114'
SELECT try_convert(date, substring(@d, 1, 4) +
...
July 24, 2013 at 8:28 am
I tried this but it is not working
July 24, 2013 at 7:44 am
Actually 2011 is year and 4 is month which shoud be represented as 04 and date is 01 (which is to be added)
I need this column data to...
July 24, 2013 at 7:43 am
Thank you..and actually it is a column that stores data as varchar and data is like this
start date
------------
20114 ----2011 is year and 4 is month
20113
20112
20105
20106
I need to represent above data...
July 23, 2013 at 10:37 pm
I need to convert it to 2011401 and need to use convert..Thank you
July 23, 2013 at 5:51 pm
Viewing 11 posts - 1 through 11 (of 11 total)