Viewing 15 posts - 1 through 15 (of 25 total)
twin.devil (3/4/2014)
you with ensure that data on which you are joining should be of numeric...
March 4, 2014 at 6:24 am
Above bolded parts in the quotes display a contradiction. Did the query run correct when removing both the CASE statements or did it NOT run correct?
If it didn't run correct...
March 4, 2014 at 6:03 am
GilaMonster (3/4/2014)
March 4, 2014 at 5:48 am
GilaMonster (3/4/2014)
Did you try mine?
Yea but I get the same float error 🙁
March 4, 2014 at 5:37 am
igloo21 (3/4/2014)
HanShi (3/4/2014)
I expect the error is caused by the CASE statement. Can you confirm this by removing both...
March 4, 2014 at 5:36 am
ChrisM@Work (3/4/2014)
SELECT DISTINCT TOP (100) PERCENTc.iCustomer_id,
c.sCustomer_number AS CustomerNo,
CASE WHEN c.sCustomer_number = 'SL000000' THEN 660 ELSE c.sCustomer_number END AS sCustomer_number,
c.sCustomer_name AS CustomerName,
c.sCustomer_state AS Customerstate,
cc.CustomerType AS...
March 4, 2014 at 5:32 am
HanShi (3/4/2014)
I expect the error is caused by the CASE statement. Can you confirm this by removing both the...
March 4, 2014 at 5:11 am
GilaMonster (3/4/2014)
If you comment out the CASE in both the select and the where does the error go away?
Thanks for the reply, yes it goes away, but I need this...
March 4, 2014 at 5:08 am
Keith Tate (1/10/2014)
Actually no it's not spelled with two s's I did some code scrubbing before posting it and...
January 10, 2014 at 10:27 am
davidandrews13 (1/10/2014)
it looks like, because it always brings back data, the EXISTS statement will always...
January 10, 2014 at 10:22 am
This worked wonderfully! The only thing I had to chenge was switching it from less than to greater than. A big thanks for your assistance!
February 7, 2013 at 11:49 am
Thanks Sean. I am adding the column as "AS ImportDate". This is actually a stored proc that I am putting together that will import into an xls. The trouble that...
February 5, 2013 at 11:21 am
So basically I'm wanting to do something like this:
CASE WHEN ImportDays=(Select DATEADD (day,-30,getdate()))THEN 'NEW' ELSE 'Older than 30 days' END AS ImportDate
February 5, 2013 at 8:52 am
quote]
I can assure you that sql did not ignore your case expression. Did you try adding the case as a column in your select? What is returned in that column?...
November 1, 2012 at 12:57 pm
Viewing 15 posts - 1 through 15 (of 25 total)