Viewing 13 posts - 46 through 58 (of 58 total)
Chisholmd
Thank you for your response. I understand your SQL statement, but I'm not sure where it would fit in the overall query.
September 16, 2005 at 11:21 am
Oh I see...I understand now. Thanks for sharing your knowledge. It's very valuable.
I will modify my SQL Server code and examine the...
September 16, 2005 at 7:00 am
My resultset was different. I think I may have translated the remaing MySQL code incorrectly. Here is the MySQL code.
, If(!isnull(PayDay), (altValue * 1), 0) as...
September 16, 2005 at 6:21 am
It works...why wouldn't it? I just need to add an ELSE statement, and it will produce results.
But I'm going to try yours to see if it produces a different...
September 16, 2005 at 6:03 am
Nothing was wrong...except that it was harder to read(at least for my eyes).
Is the version I posted the same, technically, as yours?
Here's yours:
CASE WHEN PayDay IS NOT NULL THEN...
September 15, 2005 at 2:12 pm
wow...are you employed by sqlservercentral.com?
Anyway, I wrote it out like this in SQL Server Query Analyzer:
altValue=CASE
WHEN PayDay IS NOT NULL
THEN (SELECT altValue AS TotPaid)
September 15, 2005 at 2:00 pm
Thanks, I'll give it a try
wow, you have like 5000 posts..that's crazy!
September 15, 2005 at 1:51 pm
It doesn't sound right...I can't imagine how it could be a CASE statement....
So, to translate, it's an option in a CASE statement
When PayDay isn't null, then it...
September 15, 2005 at 1:45 pm
gee, they waited 5 years for a new release? I guess there is nothing wrong with that if it works. Thank you!
September 15, 2005 at 6:09 am
Thank you thank you thank you. I prefer using the solution Justin provided because if I ever needed to add another ID number, I'd just need to modify that query.
Thank...
September 14, 2005 at 9:27 am
Viewing 13 posts - 46 through 58 (of 58 total)