About 14,600,000 results
Open links in new tab
  1. Difference between a statement and a query in SQL

    Jan 8, 2016 · As of SQL-92: An SQL-statement is a string of characters that conforms to the format and syntax rules specified in this international standard. A query is a statement that returns a recordset …

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

  3. When should I use semicolons in SQL Server? - Stack Overflow

    While checking some code on the web and scripts generated by SQL Server Management Studio I have noticed that some statements are ended with a semicolon. So when should I use it?

  4. Combining "LIKE" and "IN" for SQL Server - Stack Overflow

    Is it possible to combine LIKE and IN in a SQL Server-Query? So, that this query

  5. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · The name assigned to the sub-query is treated as though it was an inline view or table. The SQL WITH clause is basically a drop-in replacement to the normal sub-query. Syntax For The …

  6. In SQL Server, when should you use GO and when should you use semi ...

    Sep 13, 2010 · 12 You should use a semi-colon to terminate every SQL statement. This is defined in the SQL Standards, Sure, more often than not SQL Server allows you to omit the statement terminator …

  7. sql - What is a stored procedure? - Stack Overflow

    A stored procedure is a named collection of SQL statements and procedural logic i.e, compiled, verified and stored in the server database. A stored procedure is typically treated like other database objects …

  8. sql - What are DDL and DML? - Stack Overflow

    Apr 5, 2010 · I have heard the terms DDL and DML in reference to databases, but I don't understand what they are. What are they and how do they relate to SQL?

  9. Suggested way to run multiple sql statements in python?

    If multi is set to True, execute () is able to execute multiple statements specified in the operation string. It returns an iterator that enables processing the result of each statement.

  10. 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 OrderNumber LIKE '%' + @