Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 13 Ιουν 2021 · For SQL Server: CASE case-expression WHEN when-expression-1 THEN value-1 [ WHEN when-expression-n THEN value-n ... ] [ ELSE else-value ] END or: CASE WHEN boolean-when-expression-1 THEN value-1 [ WHEN boolean-when-expression-n THEN value-n ... ] [ ELSE else-value ] END expressions, etc:

  2. The SQL CASE Expression. The CASE expression goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSE clause.

  3. 2 Ιουν 2023 · The CASE statement allows you to perform an IF-THEN-ELSE check within an SQL statement. It’s good for displaying a value in the SELECT query based on logic that you have defined. As the data for columns can vary from row to row, using a CASE SQL expression can help make your data more readable and useful to the user or to the application.

  4. 28 Ιουν 2019 · SQL Server CASE statement is equivalent to the IF-THEN statement in Excel. The CASE statement is used to implement the logic where you want to set the value of one column depending upon the values in other columns.

  5. 4 Νοε 2022 · The value specified within the else is returned if no condition is satisfied. In this article, we'll cover: What the SQL CASE statement is and how it works. How to solve an exercise using the SQL CASE statement. What some important terms mean, like order by, limit, offset, left join and alias.

  6. 12 Ιουν 2024 · Definition of the CASE Statement. The CASE statement in SQL functions as a method of implementing if-then logic within SQL queries. It allows the execution of a sequence of conditions and returns specific values based on which condition is met first. Syntax of the CASE Statement.

  7. SQL Server CASE expression evaluates a list of conditions and returns one of the multiple specified results. The CASE expression has two formats: simple CASE expression and searched CASE expression. Both of CASE expression formats support an optional ELSE statement.

  1. Γίνεται επίσης αναζήτηση για