Viewing 15 posts - 91 through 105 (of 183 total)
Wont be able to get sample data , but this is how the data looks like
Month_Year MyMonth MyYear Group A ...
June 26, 2014 at 9:19 am
Sure will do.
Thanks a lot.Made my day! Saved me a lot of work.
June 11, 2014 at 9:34 am
select datepart(mm, cast( Month_Year as datetime)) gives conversion error too
June 11, 2014 at 9:20 am
Yeah was about to inform , its varchar .Datepart not working
June 11, 2014 at 9:17 am
Will try. Thanks
June 11, 2014 at 9:13 am
Thanks Sean and Luis.
Sean , I meant to say , I tried both options but did not work.
Well, Luis , the IN clause works great.
May 16, 2014 at 3:42 pm
Great!. Works but then I get an error : Invalid length parameter passed to the left or Substring function
May 14, 2014 at 10:38 am
No Worries.
I believe I forgot the second END which was causing the error.
Its Working now.. Thanks a lot!
May 9, 2014 at 12:42 pm
Thanks for the response . But
Should we not add "When" after the 2nd and 3rd Case ?
Also , When I do so I get an error : Incorrect syntax...
May 9, 2014 at 12:24 pm
No Worries, Found a Link that helped.
LTRIM(LEFT(p.Delivery_Site, CHARINDEX(' ',p.Delivery_Site)))
April 30, 2014 at 12:53 pm
Viewing 15 posts - 91 through 105 (of 183 total)