About 186,000 results
Open links in new tab
  1. Minus operator in sql - Stack Overflow

    I am trying to create a sql query with minus. I have query1 which returns 28 rows with 2 columns I have query2 which returns 22 row2 with same 2 columns in query 2. when I create a query query1 m...

  2. sql - Trying to perform MINUS operation in MySQL - Stack Overflow

    Jul 14, 2015 · I am trying to perform a MINUS operation in MySQL. I have three tables: one with service details one table with states that a service is offered in another table (based on ZIP code and state) …

  3. Minus vs Except Difference in ORACLE/SQL Server

    Apr 5, 2011 · MINUS is a SQL set operation that selects elements from the first table and then removes rows that are also returned by the second SELECT statement in Oracle. And in SQL Server, we can …

  4. sql server - How do I 'subtract' sql tables? - Stack Overflow

    The set operation you are looking for is called MINUS, but in SQL Server the keyword is EXCEPT

  5. Subtraction between two sql queries - Stack Overflow

    Oct 19, 2009 · I have 2 queries in MS SQL that return a number of results using the COUNT function. I can run the the first query and get the first result and then run the other one to get the other result, …

  6. sql - MINUS vs NOT in where clause - Stack Overflow

    Dec 9, 2016 · The MINUS operation will not return the pair (1, 2) but your query will. The c, d values may appear with the same 1, 2 but in a different row from the a, b The fundamental distinction is that …

  7. sql - Alternative to MINUS clause in MySQL? - Stack Overflow

    I am working on some queries in MySQL and I figured out the minus clause is not supported. Is there any alternative for the minus clause in MySQL? How can I substract values in a query over another

  8. How to use MINUS before WITH statement so as to select all rows from ...

    Sep 3, 2021 · How to use MINUS before WITH statement so as to select all rows from table 1 which are not in table 2 in Oracle SQL? Asked 4 years, 3 months ago Modified 6 months ago Viewed 4k times

  9. sql - MINUS Operator in oracle - Stack Overflow

    Nov 26, 2013 · SELECT COUNT(*) FROM (SELECT * FROM tableB MINUS SELECT * FROM tableA) retuns 89 Can someone please explain why does the last query return 89 and not 217?

  10. SQL where Date from today minus and plus days - Stack Overflow

    May 12, 2013 · How can I make it 'where' CUS_JoinDate will be declare as from Today Date (minus 1 month and today + 1 month)? So every time I run the report it will depends on the current date and it …