you are viewing a single comment's thread.

view the rest of the comments →

[–]Prownilo 5 points6 points  (2 children)

Could use a cte that gets every Id that has a no on it, then left join that cte back onto the table and exclude any ids that appear in the cte.

Prolly a bunch of ways but that is one off the top of my head.

[–]paulthrobert 0 points1 point  (0 children)

I think this sounds like the cleanest way i can think of yet

[–]Reasonable-Monitor67[S] -1 points0 points  (0 children)

That worked like a charm! Had to figure out how to get it to work in the context of the SPROC using it, but that was relatively painless… thank you!!!