About 3,150,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 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 …

  3. SQL JOIN: what is the difference between WHERE clause and ON …

    SQL INNER JOIN The SQL JOIN clause allows you to associate rows that belong to different tables. For instance, a CROSS JOIN will create a Cartesian Product containing all possible …

  4. What is the use of the square brackets [] in sql statements?

    The Microsoft book for SQL course says "You should use two-part names to refer to tables in SQL Server databases, such as Sales.Customer" so they don't ask to surround namespace with …

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

  6. How to fix Recovery Pending State in SQL Server Database?

    Sep 14, 2018 · Rename the DB and the Log files (Database Properties -> Files) In the Object Explorer window in SQL Management Studio, refresh the 'Databases Folder', if you see that …

  7. How to calculate percentage with a SQL statement

    Due to precedence of SQL statements it will be the same. however, due to data types if using 100 you can still get the result rounded to 0 decimals you desire for the % where as if you put it …

  8. SQL Server® 2016, 2017, 2019 and 2022 Express full download

    Jan 25, 2017 · All previous version of SQL Server Express were available in both web and full downloads. But I cannot find full download of SQL Server® 2016 Express. Does it exist? …

  9. SQL - Select first 10 rows only? - Stack Overflow

    Dec 12, 2009 · The ANSI SQL answer is FETCH FIRST. SELECT a.names, COUNT(b.post_title) AS num FROM wp_celebnames a JOIN wp_posts b ON INSTR(b.post_title, a.names) > 0 …

  10. SQL: How to properly check if a record exists - Stack Overflow

    Nov 23, 2010 · While reading some SQL Tuning-related documentation, I found this: SELECT COUNT(*) : Counts the number of rows. Often is improperly used to verify the existence of a …