J
juan
Hello all,
have following sql view query:
SELECT TABLE1.[PART#], TABLE1.COST, TABLE1.QT_PRICE,
TABLE1.ZPR1, TABLE1.ZPRC, TABLE1.ZQCM
FROM TABLE1
WHERE (((TABLE1.[PART#]) In (SELECT [PART#] FROM TABLE1 AS
T
GROUP BY [PART#]
HAVING Count([PART#]) >= 3)) AND ((TABLE1.STATUS2) In
("K","C","Z")) AND ((TABLE1.SALES) Like "B*") AND
((TABLE1.SATYPE)="BID"))
ORDER BY TABLE1.[PART#];
But I'm not getting exactly what I want from the HAVING
criteria. It seems that the query returns parts that match
one or more of those criteria.Example,
I get two parts
1232
1232
But my count is >= 3, so I shouldnt' get these. But since
these 2 parts have SATYPE (BID) I get them. So is there a
way around this?
Hope I'm clear. Please advise any input would really
appreciate it.
Thanks,
Juan
have following sql view query:
SELECT TABLE1.[PART#], TABLE1.COST, TABLE1.QT_PRICE,
TABLE1.ZPR1, TABLE1.ZPRC, TABLE1.ZQCM
FROM TABLE1
WHERE (((TABLE1.[PART#]) In (SELECT [PART#] FROM TABLE1 AS
T
GROUP BY [PART#]
HAVING Count([PART#]) >= 3)) AND ((TABLE1.STATUS2) In
("K","C","Z")) AND ((TABLE1.SALES) Like "B*") AND
((TABLE1.SATYPE)="BID"))
ORDER BY TABLE1.[PART#];
But I'm not getting exactly what I want from the HAVING
criteria. It seems that the query returns parts that match
one or more of those criteria.Example,
I get two parts
1232
1232
But my count is >= 3, so I shouldnt' get these. But since
these 2 parts have SATYPE (BID) I get them. So is there a
way around this?
Hope I'm clear. Please advise any input would really
appreciate it.
Thanks,
Juan