About 3,130,000 results
Open links in new tab
  1. Should I use != or <> for not equal in T-SQL? - Stack Overflow

    Yes; Microsoft themselves recommend using <> over != specifically for ANSI compliance, e.g. in Microsoft Press training kit for 70-461 exam, "Querying Microsoft SQL Server", they say "As …

  2. SQL asterisk(*) all possible uses - Stack Overflow

    Apr 13, 2020 · It is used in sql-server for xml. In the code below, aliasing the subquery as ' [*]' means that COLUMN_NAME and DATA_TYPE xml nodes output on the same level as …

  3. What does the "@" symbol do in SQL? - Stack Overflow

    The @CustID means it's a parameter that you will supply a value for later in your code. This is the best way of protecting against SQL injection. Create your query using parameters, rather than …

  4. SQL: IF clause within WHERE clause - Stack Overflow

    Sep 18, 2008 · Is it possible to use an IF clause within a WHERE clause in MS SQL? Example: WHERE IF IsNumeric(@OrderNumber) = 1 OrderNumber = @OrderNumber ELSE …

  5. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · 353 The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also …

  6. sql - Incorrect syntax near '' - Stack Overflow

    I'm trying to run the following fairly simple query in SQL Server Management Studio: SELECT TOP 1000 * FROM master.sys.procedures as procs left join master.sys.parameters as params …

  7. Explanation of % in SQL - Stack Overflow

    Jun 12, 2019 · Could someone explain the difference between % in SQL? I understand that % is a wildcard that allows you to query results with LIKE results, i.e. a% for words starting with a, but …

  8. SQL Server CASE .. WHEN .. IN statement - Stack Overflow

    May 18, 2011 · On SQL server 2005 I am trying to query this select statement SELECT AlarmEventTransactionTableTable.TxnID, CASE AlarmEventTransactions.DeviceID WHEN …

  9. sql - Find all tables containing column with specified name - Stack ...

    In MS SQL Server Database, use this query to get the tables and respective column names that contains the input text: SELECT t.name AS tableName, c.name AS columnName

  10. SQL WHERE.. IN clause multiple columns - Stack Overflow

    I need to implement the following query in SQL Server: SELECT * FROM table1 WHERE (CM_PLAN_ID, Individual_ID) IN ( SELECT CM_PLAN_ID, Individual_ID FROM …