How do I perform an IF...THEN in an SQL SELECT?
How do I perform an IF...THEN in an SQL SELECT?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/6522/eric-labashosky)Eric Labashosky |
(stackoverflow.com/users/6819/darrel-miller)Darrel Miller |
(stackoverflow.com/users/6910/jonathan)Jonathan |
(stackoverflow.com/users/73226/martin-smith)Martin Smith |
(stackoverflow.com/users/46/sven)sven |
(stackoverflow.com/users/312/palehorse)palehorse |
A special thanks goes out to the (https://stackoverflow.com/questions/63447/how-do-i-perform-an-if-then-in-an-sql-select)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
case sql tsql if-statement sql-server