Hi!
I'm tryng to find rows in one table (tblRemainingFiles) that do not match with an entry in another table (tblErrorLog)...
So far, I have the following sql written -
SELECT c.SourcePath, c.ErrorMessage
FROM dbo.tblErrorLog AS c
JOIN dbo.tblRemainingFiles AS e
ON e.Path <> c.SourcePath
WHERE NOT EXISTS
(SELECT *
FROM dbo.tblRemainingFiles AS rf
JOIN dbo.tblErrorLog AS el
ON rf.Path = el.SourcePath
WHERE el.ErrorMessage LIKE '%File Exists in target location%')
but it does not return any rows (I expected at least a few hundred) as the row counts are 19583 for tblErrorLog and 25419 for tblRemainingFiles...
Any help will be appreciated!
Regards,
Alan
I'm tryng to find rows in one table (tblRemainingFiles) that do not match with an entry in another table (tblErrorLog)...
So far, I have the following sql written -
SELECT c.SourcePath, c.ErrorMessage
FROM dbo.tblErrorLog AS c
JOIN dbo.tblRemainingFiles AS e
ON e.Path <> c.SourcePath
WHERE NOT EXISTS
(SELECT *
FROM dbo.tblRemainingFiles AS rf
JOIN dbo.tblErrorLog AS el
ON rf.Path = el.SourcePath
WHERE el.ErrorMessage LIKE '%File Exists in target location%')
but it does not return any rows (I expected at least a few hundred) as the row counts are 19583 for tblErrorLog and 25419 for tblRemainingFiles...
Any help will be appreciated!
Regards,
Alan