![]() The IF statement runs a logical test it checks whether a specific expression is true or false. The IF-THEN-ELSE construct goes like this. You may already be familiar with it, especially if you have used it in Excel or some other programming language. You can think of it as an SQL equivalent of the IF-THEN-ELSE construct. Clauses WHEN, THEN, and ELSE are all part of the CASE statement. Don’t let it confuse you it’s all the same. Sometimes, it is called a CASE WHEN expression or any of the others I’ve mentioned above. Strictly speaking, it is called a CASE statement in SQL. ![]() ![]() CASE, CASE WHEN, CASE WHEN THEN, or CASE WHEN THEN ELSE?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |