About 462,000 results
Open links in new tab
  1. SQL how to compare two tables for same data content?

    How do I write an SQL query to check if TableA and TableB (which have identical primary keys) contain exactly the same values in every column? It means that these two tables have exactly …

  2. sql query to return differences between two tables

    I am trying to compare two tables, SQL Server, to verify some data. I want to return all the rows from both tables where data is either in one or the other. In essence, I want to show all the

  3. SQL Server compare results of two queries that should be identical

    Jun 13, 2012 · This question is similar to: sql query to return differences between two tables. If you believe it’s different, please edit the question, make it clear how it’s different and/or how …

  4. How to compare values which may both be null in T-SQL

    How to compare values which may both be null in T-SQL Asked 16 years, 5 months ago Modified 11 months ago Viewed 140k times

  5. SQL datetime compare - Stack Overflow

    Dec 9, 2015 · 8 You can view SQL Server's date and time format for yourself by running this query:

  6. sql - Check if two "select"s are equivalent - Stack Overflow

    0 Run both of them and compare the results. Use the EXCEPT operation to subtract the set returned by the first query from the set returned by the second query. If the result is an empty …

  7. How to compare datetime with only date in SQL Server

    Aug 29, 2014 · How to compare datetime with only date in SQL Server Asked 11 years, 3 months ago Modified 6 years, 2 months ago Viewed 429k times

  8. sql server - How to compare two queries? - Stack Overflow

    38 How can I compare two queries X and Y and say that X is better than Y, when they both take almost the same time in small cases scenarios? The problem is that I have two queries that …

  9. How do I compare two columns for equality in SQL Server?

    ON C.CustomerId = O.CustomerId GO NULLIF returns the first expression if the two expressions are not equal. If the expressions are equal, NULLIF returns a null value of the type of the first …

  10. sql server - Query comparing dates in SQL - Stack Overflow

    Nov 12, 2013 · Instead of sending a string with the date then, try creating a parameterized query and pass the date as a date-typed parameter. BTW what version of SQL Server are you …