duanecwilson
Programmer
I can't seem to get this simplest concept into SQL and work properly. All I want is to (pseudocode)
SELECT
WorkstationID
Count(Product)
From MyTable
Where Count(Product > 1)
AND Product NOT IN ('Product1','Product2', etc.)
No matter what I write, I either get an error or I get the wrong results (usually all of them disregarding the IN list). I have tried GROUP BY ... HAVING, all kinds of things.
I haven't included my SQL because I have tried 100 things, all wrong. Please help me with this.
Thank you.
Duane Wilson
SELECT
WorkstationID
Count(Product)
From MyTable
Where Count(Product > 1)
AND Product NOT IN ('Product1','Product2', etc.)
No matter what I write, I either get an error or I get the wrong results (usually all of them disregarding the IN list). I have tried GROUP BY ... HAVING, all kinds of things.
I haven't included my SQL because I have tried 100 things, all wrong. Please help me with this.
Thank you.
Duane Wilson