Viewing 15 posts - 31 through 45 (of 88 total)
SSC experts would definitely have an answer to this .. my wild guess though is :unsure: ....probably firstly converting it to excel and then reading that excel... or writing some...
March 24, 2014 at 12:51 am
Probably some unicode character featuring in one of the rows from those columns.:unsure:
March 24, 2014 at 12:36 am
You may have to use combination of charindex() and len() function to determine this. If you could please provide the sample set then we can give it a go.
March 20, 2014 at 6:23 am
probably you are looking for something like this
select pincode,sales,SUM(sales) from #cust
group by pincode,sales with rollup
March 10, 2014 at 4:17 am
sorry, what is the issue, again :unsure:?
Please provide statements to create sample set and what exactly is expected ?
March 10, 2014 at 1:52 am
Did you go through following link ?
March 10, 2014 at 1:40 am
why not use conditional split transform to eliminate empty rows ?
March 10, 2014 at 1:38 am
is it ? can you please try to execute the entire query again.. isn't it returning the expected result = DUPLECHEIN, KELLIE and LANDRY, MICHELE..of course except for MICHELE..
The logic...
March 7, 2014 at 12:17 pm
I agree with JohnFTamburo on using split function and the probable inconsistency of hypen in the text... still wanted to give a shot so ended up writing following ......
March 7, 2014 at 11:51 am
Not sure about the performance but tried doing it following way... please consider cte and cte1 as tables wrt to update statement written at the end
;with cte as
(
select 1...
March 7, 2014 at 11:27 am
I was about to update the post and saw your comment Thank you MyDoggieJessie for pointing that out.
March 7, 2014 at 11:19 am
select date_value,monthly_total,(select sum(monthly_total) from sales s where date_value <= tst.date_value )
monthly_total_sum from
(
select *,ROW_NUMBER() over ( order by date_value )tst from sales
)tst order by date_value
March 7, 2014 at 10:53 am
For date conversion you may use
SELECT convert(date,CONVERT(varchar(10),columname,101))
For time please take a look at http://stackoverflow.com/questions/12568408/how-to-convert-an-integer-time-to-hhmmss00-in-sql-server-2008
Experts, is there any other easy way to convert integer to time ?
March 5, 2014 at 4:30 am
here in a comma separated input string ',' is replaced by " ' as tags UNION SELECT ' " so that you get a output with distinct...
March 5, 2014 at 3:23 am
I tried doing this though I was successful but I feel there has to be a easy way around... I do not have SQL 2012 so did it in 2008......
March 5, 2014 at 2:06 am
Viewing 15 posts - 31 through 45 (of 88 total)