G
gypsyman
I have a GROUPBY function that is Grouping all items by upc and if there is a
duplicate in the upc then it is showing the MINimum price in Access 2000.
Here was what it looks like, I call it the "GroupBy" query:
SELECT unionquery.upc, Min(unionquery.price) AS MinOfprice
FROM unionquery
GROUP BY unionquery.upc;
unionquery is the query I am selecting this information from. Inside union
query is 4 other fields, id, price, category and qty. My problem is adding
these fields to the "GROUPBY" query that is shown bove.
I cant seem to get them into the above query becuase every field seems to
require an aggregrate function and those four other fields all I want is
their info I dont want anything to change with them.
Ive tried to create another query by linking to the above "GroupBY" query,
but when I do this all I ever get is all of the fields like the "GroupBy"
query was never even run.
Anyone having any suggestions is greatly appreciated. I must say Im at a loss.
Thanks!
duplicate in the upc then it is showing the MINimum price in Access 2000.
Here was what it looks like, I call it the "GroupBy" query:
SELECT unionquery.upc, Min(unionquery.price) AS MinOfprice
FROM unionquery
GROUP BY unionquery.upc;
unionquery is the query I am selecting this information from. Inside union
query is 4 other fields, id, price, category and qty. My problem is adding
these fields to the "GROUPBY" query that is shown bove.
I cant seem to get them into the above query becuase every field seems to
require an aggregrate function and those four other fields all I want is
their info I dont want anything to change with them.
Ive tried to create another query by linking to the above "GroupBY" query,
but when I do this all I ever get is all of the fields like the "GroupBy"
query was never even run.
Anyone having any suggestions is greatly appreciated. I must say Im at a loss.
Thanks!