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

  6. sql server - SQL MAX of multiple columns? - Stack Overflow

    Mar 8, 2012 · How do you return 1 value per row of the max of several columns: TableName [Number, Date1, Date2, Date3, Cost] I need to return something like this: [Number, …

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

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

    We all know that to select all columns from a table, we can use SELECT * FROM tableA Is there a way to exclude column(s) from a table without specifying all the columns? SELECT * [except …

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

  10. sql - ORA-00904: invalid identifier - Stack Overflow

    May 17, 2011 · SQL> Oracle SQL allows us to ignore the case of database object names provided we either create them with names all in upper case, or without using double quotes.