About 2,950,000 results
Open links in new tab
  1. sql - NOT IN vs NOT EXISTS - Stack Overflow

    Which of these queries is the faster? NOT EXISTS: SELECT ProductID, ProductName FROM Northwind..Products p WHERE NOT EXISTS ( SELECT 1 FROM Northwind..[Order Details] …

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

  3. How do I perform an IF...THEN in an SQL SELECT?

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

  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 - What is the difference between JOIN and INNER JOIN

    SELECT * FROM table INNER JOIN otherTable ON table.ID = otherTable.FK Is there any difference between the statements in performance or otherwise? Does it differ between …

  6. What is the difference between INNER JOIN and OUTER JOIN?

    Sep 2, 2008 · (SQL Standard 2006 SQL/Foundation 7.7 Syntax Rules 1, General Rules 1 b, 3 c & d, 5 b.) So don't outer join on until you know what underlying inner join on is involved. Find out …

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

    17 In MS SQL Server Database, use this query to get the tables and respective column names that contains the input text:

  8. sql - UPDATE and REPLACE part of a string - Stack Overflow

    Jun 28, 2013 · I've got a table with two columns, ID and Value. I want to change a part of some strings in the second column. Example of Table: ID Value ...

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

    SELECT * FROM table1 WHERE (CM_PLAN_ID, Individual_ID) IN ( SELECT CM_PLAN_ID, Individual_ID FROM CRM_VCM_CURRENT_LEAD_STATUS WHERE Lead_Key = …

  10. How to select unique records by SQL - Stack Overflow

    How to select unique records by SQL Asked 16 years, 1 month ago Modified 1 year, 11 months ago Viewed 748k times