Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little SQL puzzle
Message
From
17/01/2010 15:33:53
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01444375
Message ID:
01444444
Views:
70
Yes, that produces the correct result, thanks.

I like Greg's (and the link that Eric posted) because it solves it in one SELECT statement. I realize that sometimes an "if one condition, run this select....otherwise, run this select" is necessary, but in this case I think one SELECT is preferable.

Thanks for playing, everyone! OK, that was too easy, have to come up with a tougher one :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform