Home Forums SQL Server 2008 T-SQL (SS2K8) Exclude Records using join RE: Exclude Records using join
Sony Francis @EY
SSCommitted
Points: 1539
More actions
November 7, 2012 at 2:41 am
#1556686
Try this
SELECT *
FROM TableA a
LEFT OUTER JOIN TableB b ON a.LoanID = b.LoanID
WHERE b.ColumnA <> 'Y'
When we use INNER JOIN it will consider only commom records. But the user wants to consider all records in first table