SQL omit record if ever had value set

Dee Ayy <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <CAFXM-azwdCrtf18ATmg4FzF00qcWph1ftsD9pO_x8OQ_7G7QCw@mail.gmail.com>
I would like a query that lists records where a column has not taken
on a specific value when grouped by another column.

N  V
n1 v1
n1 v2
n2 v1
n2 v2
n2 v3
n3 v1

If v3 has ever been set for N, do not list N.  So the result would be n1, n3

If v2 has ever been set for N, do not list N.  So the result would be only n3

MSSQL

TIA

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.