The SQL Case statement is usually inside of a Select list to alter the output.
La sentencia de SQL CASE generalmente está dentro de una lista de selección para alterar la salida.
We will explain this using a simple example later on but feel free to check out the following article for more details on the Case expression: Querying data using the SQL Case statement
Más adelante se explicará esto con un ejemplo simple, pero no dude en consultar el siguiente artículo para poder obtener más detalles sobre la expresión del caso: Consultar datos utilizando la sentencia SQL Case
GO Now, instead of doing SQL case statement followed by a column name we just do Case, When, and then column name with the output range and what we want to print out.
GO Ahora, en lugar de realizar una sentencia de SQL CASE seguida de un nombre de columna, simplemente hacemos case, when, y luego el nombre de columna con el rango de salida y lo que queremos imprimir.
And that is how SQL Case statement is used in an Order by clause
But a lot of times and in some more advanced and complex stuff like stored procedures, you'll see SQL Case statement in places like Order by and/or SQL Where Case clause.
No obstante, muchas veces y en algunas cosas más avanzadas y complejas, como los procedimientos almacenados, verá la sentencia del SQL CASE en lugares como la cláusula Ordenar por y/o Dónde.
For instance, let's see how we can reference the "AdventureWorks2012" database and show an example of a SQL Case statement.
Por ejemplo, vamos a ver cómo podemos hacer referencia a la base de datos "AdventureWorks2012" y poder mostrar un ejemplo de una declaración de SQL CASE.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.
No results found for this meaning.
Synonyms and analogies of "sql case statement" in English