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

  2. sql server 2008 - SQL query with NOT LIKE IN - Stack Overflow

    May 22, 2023 · SQL query with NOT LIKE IN Asked 13 years, 8 months ago Modified 2 years, 5 months ago Viewed 568k times

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

  5. SQL Replace multiple different characters in string

    Aug 30, 2016 · SQL Replace multiple different characters in string Asked 9 years, 2 months ago Modified 1 year, 2 months ago Viewed 223k times

  6. SQL Server tables: what is the difference between @, # and

    Feb 8, 2010 · In SQL Server, what is the difference between a @ table, a # table and a ## table?

  7. sql server - Database stuck in "Restoring" state - Stack Overflow

    Ran into a similar issue while restoring the database using SQL server management studio and it got stuck into restoring mode. After several hours of issue tracking, the following query worked …

  8. sql - Exclude a column using SELECT * [except columnA] FROM …

    FROM TableA This very powerful SQL syntax avoids a long list of columns that must be constantly updated due to table column name changes. This functionality is missing in the …

  9. sql - Must declare the scalar variable - Stack Overflow

    @RowFrom int @RowTo int are both Global Input Params for the Stored Procedure, and since I am compiling the SQL query inside the Stored Procedure with T-SQL then using …

  10. sql - Access the "previous row" value in a SELECT statement - Stack ...

    SQL has no built in notion of order, so you need to order by some column for this to be meaningful. Something like this: select t1.value - t2.value from table t1, table t2 where …