Hi there,
I think this will do the trick:
SELECT FileName, COUNT(FileName) AS NumRecords
FROM FileNamesTable
GROUP BY FileName
HAVING (COUNT(FileName) = 1)
This ouputs something like this:
FileName NumRecords
BBBB 1
CCC 1
which I think is what you're after.
The SELECT for NumRecords isn't strictly necessary, so you can drop it if you want.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Pretty Tied Up by
Guns N' Roses (Track 7 from the album:
Use Your Illusion 2)
What's This?