About 2,530,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. 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 …

  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. How do I perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · 2059 The CASE statement is the closest to IF in SQL and is supported on all versions of SQL Server.

  6. SQL to find the number of distinct values in a column

    SQL to find the number of distinct values in a column Asked 17 years, 1 month ago Modified 2 years, 7 months ago Viewed 825k times

  7. SQL Query Where Field DOES NOT Contain $x - Stack Overflow

    Oct 24, 2008 · I want to find an SQL query to find rows where field1 does not contain $x. How can I do this?

  8. sql - How do I use ROW_NUMBER ()? - Stack Overflow

    Jun 7, 2009 · SQL Row_Number () function is to sort and assign an order number to data rows in related record set. So it is used to number rows, for example to identify the top 10 rows which …

  9. sql - Selecting COUNT (*) with DISTINCT - Stack Overflow

    In SQL Server 2005 I have a table cm_production that lists all the code that's been put into production. The table has a ticket_number, program_type, program_name and push_number …

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

    SELECT TOP 1000 * FROM master.sys.procedures as procs left join master.sys.parameters as params on procs.object_id = params.object_id This seems totally correct, but I keep getting …