Αποτελέσματα Αναζήτησης
22 Οκτ 2019 · I trying to create a SQL query with a CASE WHEN EXISTS clause in SQL Server. I assume I am doing something wrong as when I run the SELECT * FROM [Christmas_Sale] it takes forever for SQL to load the code.
19 Νοε 2024 · Table hints are used to override the default behavior of the query optimizer during the data manipulation language (DML) statement. You can specify a locking method, one or more indexes, a query-processing operation such as a table scan or index seek, or other options.
3 Σεπ 2024 · Syntax for SQL Server, Azure SQL Database and Azure Synapse Analytics. -- Simple CASE expression: CASE input_expression WHEN when_expression THEN result_expression [ ...n ] [ ELSE else_result_expression ] END -- Searched CASE expression: CASE WHEN Boolean_expression THEN result_expression [ ...n ] [ ELSE else_result_expression ] END
29 Αυγ 2024 · I've seen the EXISTS keyword in Microsoft SQL Server T-SQL code and don't understand it well. What does it do? How do I use it? Are there best practices around SQL EXISTS? This SQL tutorial will explain what the keyword EXISTS does and show several different use cases.
20 Απρ 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.
11 Φεβ 2020 · In these cases, the CASE statement can be quite useful for your SQL Server T-SQL logic. In this article, we are going to introduce some common tasks where the flexible usage of the SQL Server CASE statement can be essential. We will create a test environment, define sample tasks and provide practical solutions.
What is CASE in SQL Server? The CASE expression in SQL server allows us to apply if-then-else logic in a SQL statement. A CASE consists of a number of conditions with an accompanying custom result value in a case body followed by an optional ELSE clause.