Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 15 kwi 2016 · I'm using a SELECT statement in T-SQL on a table similar to this: SELECT DISTINCT name, location_id, application_id FROM apps WHERE ((application_id is null) or (application_id = '4')) AND ((location_id is null) or (location_id = '3'))

  2. 3 wrz 2024 · The following example uses IF...ELSE to determine which of two responses to show the user, based on the weight of an item in the DimProduct table.

  3. 19 lip 2024 · The example shows using multiple SELECT statements and multiple OUTPUT parameters. OUTPUT parameters allow an external procedure, a batch, or more than one Transact-SQL statement to access a value set during the procedure execution.

  4. Let’s take some examples of using the SQL Server IIF() function. A) Using SQL Server IIF() function with a simple example. This example uses the IIF() function to check if 10 < 20 and returns the True string: SELECT IIF (10 < 20, 'True', 'False') Result; Code language: SQL (Structured Query Language) (sql) Here is the result:

  5. 3 wrz 2024 · Returns one of two values, depending on whether the Boolean expression evaluates to true or false in SQL Server. Transact-SQL syntax conventions.

  6. You can declare parameters using the DECLARE statement in SQL Server, or you can define parameters in a stored procedure or a prepared SQL statement. Here's an example of declaring a parameter in a stored procedure:

  7. I have a stored procedure that has a parameter that must take a comma delimited varchar list of values that can be turned into a table of values or can be NULL, such as. @Values VARCHAR(10) = NULL. OR. @Values VARCHAR(10) = '1,5,10'. IF OBJECT_ID('TEMPDB..#Parameters') IS NOT NULL DROP TABLE #Parameters.