hi
syntax of non matching rows in a query with where clause in sql with example
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
DRISHTY134 reputationPosted Sep 23, 2014, 10:15 PM EDT
http://stackoverflow.com/questions/5840217/sql-query-help-to-get-non-matching-records-from-two-tables
Maneesh A N179 reputationPosted Sep 23, 2014, 10:52 PM EDT
DRISHTY134 reputationPosted Sep 23, 2014, 11:19 PM EDT
CREATE TABLE TEMP1(ID BIGINT,Datevalue date)
CREATE TABLE TEMP2(ID BIGINT,Datevalue date)
INSERT INTO TEMP1
SELECT 1,'2014-09-03' UNION
SELECT 2,'2014-09-04' UNION
SELECT 3,NULL UNION
SELECT 4,NULL
INSERT INTO TEMP2
SELECT 1,'2014-09-03' UNION
SELECT 2,'2014-09-05' UNION
SELECT 4,NULL UNION
SELECT 5,NULL
SELECT * FROM TEMP1
SELECT * FROM TEMP2
SELECT *
FROM TEMP1
FULL OUTER JOIN TEMP2 ON TEMP1.Datevalue = TEMP2.Datevalue
WHERE TEMP1.Datevalue IS NULL
OR TEMP2.Datevalue IS NULL
DROP TABLE TEMP1
DROP TABLE TEMP2
END
Maneesh A N179 reputationPosted Sep 24, 2014, 12:51 AM EDT
please make it correct?
create procedure prcexpincbalprint
error found
Msg 102, Level 15, State 1, Procedure prcexpincbalprint, Line 9
VulpesRank #55 · 29.2K reputationPosted Sep 24, 2014, 1:54 AM EDT