About 50 results
Open links in new tab
  1. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · 355 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 called …

  2. SQL JOIN: what is the difference between WHERE clause and ON clause?

    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 combinations of rows between …

  3. List of special characters for the SQL 'LIKE' clause

    Two comments. First, Microsoft SQL comes initially from Sybase, so the resemblance is not coincidental. Second, escaping a single quote with another is not limited to LIKE; for example …

  4. SQL Switch/Case in 'where' clause - Stack Overflow

    You can use a WHERE clause when you're checking the WHERE criteria in the predicate, such as ... so in your particular case, you're going to need put the query into a stored procedure or create three …

  5. sql - How to use "and" and "or" in a "Where" clause - Stack Overflow

    How to use "and" and "or" in a "Where" clause Asked 13 years, 9 months ago Modified 10 years, 4 months ago Viewed 78k times

  6. Execution sequence of Group By, Having and Where clause in SQL …

    Jul 15, 2009 · I am just confused with the execution sequence of a SQL query when we use GROUP BY and HAVING with a WHERE clause. Which one gets executed first? What is the sequence?

  7. SQL IN Clause 1000 item limit - Stack Overflow

    Nov 5, 2025 · There's another workaround for this that isn't mentioned in any of the other answers (or other answered questions): Any in statement like x in (1,2,3) can be rewritten as (1,x) in ((1,1), (1,2), …

  8. sql - Case sensitive search in WHERE clause - Stack Overflow

    Dec 2, 2009 · I want to do a case sensitive search in my SQL query. But by default, SQL Server does not consider the case of the strings. Any idea on how to do a case sensitive search in SQL query?

  9. IN vs OR in the SQL WHERE clause - Stack Overflow

    Jun 19, 2010 · When dealing with big databases, which performs better: IN or OR in the SQL WHERE clause? Is there any difference about the way they are executed?

  10. sql - INNER JOIN ON vs WHERE clause - Stack Overflow

    Nevertheless, ANSI SQL-89 specified joins to be done with commas and conditions in a WHERE clause (without conditions, a join is equivalent to a cross join, as you said). ANSI SQL-92 added the JOIN …