About 9,840,000 results
Open links in new tab
  1. 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.

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

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

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

    Apr 2, 2009 · 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 …

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

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

    Dec 31, 2019 · 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 …

  7. In SQL Server, when should you use GO and when should you use …

    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 …

  8. sql - JOIN two SELECT statement results - Stack Overflow

    Is it possible to join the results of 2 sql SELECT statements in one statement? I have a database of tasks where each record is a separate task, with deadlines (and a PALT, which is just an …

  9. Exporting data In SQL Server as INSERT INTO - Stack Overflow

    Nov 3, 2015 · I am using SQL Server 2008 Management Studio and have a table I want to migrate to a different db server. Is there any option to export the data as an insert into SQL …

  10. Generate sql insert script from excel worksheet - Stack Overflow

    May 29, 2013 · I have a large excel worksheet that I want to add to my database. Can I generate an SQL insert script from this excel worksheet?