Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. Learn how to use the SQL CASE expression to check conditions and return values like an if-then-else statement. See syntax, examples and a demo database.

    • Try It Yourself

      CASE WHEN Quantity > 30 THEN 'The quantity is greater than...

  2. Learn how to use CASE expression to evaluate a list of conditions and return one of multiple possible results in SQL Server. See syntax, arguments, return types, remarks and examples for simple and searched CASE formats.

  3. The CASE is just a "switch" to return a value - not to execute a whole code block. You need to change your code to something like this: SELECT @selectoneCount = CASE @Temp WHEN 1 THEN @selectoneCount + 1 WHEN 2 THEN @selectoneCount + 1 END

  4. 17 lis 2014 · Instrukcja CASE w zapytaniach SELECT języka SQL. Zapytania w SQL do bazy danych to nie tylko proste porównania klucza lub innych kolumn. Aby pobrać dokładnie spersonalizowane informacje możemy zastosować również instrukcję CASE – podobną do instrukcji switch na przykład z języka C++.

  5. 20 kwi 2021 · In the T-SQL scripting language, you can use the SQL CASE statement to evaluate a condition and return one or more result expressions. This SQL Tutorial will teach you when and how you can use CASE in T-SQL statements.

  6. 30 sie 2022 · This article provides you implementation details of SQL server switch case statement and how to use it with examples

  7. 28 cze 2023 · The SQL CASE expression operates similar to a switch statement found in programming languages like C# or Java, allowing users to execute specific actions depending on predefined conditions. By utilizing this feature, users can gain improved control over how data is presented, analyzed, and manipulated within SQL, ultimately enhancing the ...

  1. Ludzie szukają również