i need a little help.
Let say ive this recordset below, im using Common Table Expressions, i'm at my last step which is :
If for a FolderName, i have the same FullDt value, i want to be able to select the row that the LastDate IS NULL,
so at the end, on my last select, i'll end up with unique FolderName and FullDt.
So the logic is :
select * (everything)
where ( If i got 2 records or more with the same FolderName and same FullDt, take the record where LastDt is Null.)
It's sound pretty simple and easy, but i can't figure it out on my sql query.
**I've updated the picture to be more relevant of what i want to do, the records with red marked lines, i dont want them anymore , why ?
cause there's 2 records with the same FolderName and FullDt, so i just want to keel the records where LastDt is Null
Thanks you for your time and your help !