William Kossack (kossackw@njc.org) writes:
[quoted text, click to view] > this works except I'm needing distinct combinations of several fields
> such as
>
> SELECT x, y, z, COUNT(*)
> FROM table
> GROUP BY x
> HAVING COUNT(*)>1
And that query is good for you? Or are you asking for more assistance?
In the latter case, please post:
o CREATE TABLE statment for the your table
o INSERT statement with sample data.
o The desired result given the sample.
if we have to guess what you are looking for, odds are that our
guesses will be wrong.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server SP3 at