Answers for "find difference between two rows sql"

SQL
1

find difference in dates sql

SELECT DATEDIFF(day, date1,date2) AS DateDiff
/*
DATEDIFF accepts three arguments
1- day, month, year etc what form you need difference
2,3- dates 
*/
Posted by: Guest on December-30-2020
4

sql difference between two tables

(SELECT * FROM T1 MINUS SELECT * FROM T2)   -- Rows that are in T1 but not in T2
UNION ALL
(SELECT * FROM T2 MINUS SELECT * FROM T1);  -- Rows that are in T2 but not in T1
Posted by: Guest on July-02-2021

Code answers related to "find difference between two rows sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language