G
Guest
Hello
I have the two following queries:
SELECT Items.ItemCode, Count(Items.ItemCode) AS [Count of Multiples],
Items.Cost
FROM Items
GROUP BY Items.ItemCode, Items.Cost
HAVING (((Items.ItemCode) In (SELECT [ItemCode] FROM [Items] As Tmp GROUP BY
[ItemCode] HAVING Count(*)>1 )))
ORDER BY Items.ItemCode;
And
SELECT Items.ItemCode, Items.LocationID
FROM Items
WHERE (((Items. LocationID)="Level3"));
I want to have a third query that gives the records (ItemCodes) from the
first query for only those ItemCodes I take by the second query.
Do you know how?
Thank you
GL
I have the two following queries:
SELECT Items.ItemCode, Count(Items.ItemCode) AS [Count of Multiples],
Items.Cost
FROM Items
GROUP BY Items.ItemCode, Items.Cost
HAVING (((Items.ItemCode) In (SELECT [ItemCode] FROM [Items] As Tmp GROUP BY
[ItemCode] HAVING Count(*)>1 )))
ORDER BY Items.ItemCode;
And
SELECT Items.ItemCode, Items.LocationID
FROM Items
WHERE (((Items. LocationID)="Level3"));
I want to have a third query that gives the records (ItemCodes) from the
first query for only those ItemCodes I take by the second query.
Do you know how?
Thank you
GL