Hi Guys...
I am new to Microsoft Access and am primarily using the database that talks to an SQL database that I am using in a C#/ASP environment.
Currently I am trying to create a query that would find the minimum price in a table however, I also want to count the amount of times that the minimum price is found.
So for the Min price...I would do something simple like:
SELECT MIN(`Price`)
FROM tPrice
WHERE ITEM = @ITEM
But I want the Count and the finding the min price in one command....so this is what I have currently...
SELECT MIN(`Price`)
FROM tPrice
WHERE ITEM = @ITEM
Group by price
Having Count(*) > 1
Obviously this isn't working...can anyone please point me in the right direction?
Thanks in advance...
I am new to Microsoft Access and am primarily using the database that talks to an SQL database that I am using in a C#/ASP environment.
Currently I am trying to create a query that would find the minimum price in a table however, I also want to count the amount of times that the minimum price is found.
So for the Min price...I would do something simple like:
SELECT MIN(`Price`)
FROM tPrice
WHERE ITEM = @ITEM
But I want the Count and the finding the min price in one command....so this is what I have currently...
SELECT MIN(`Price`)
FROM tPrice
WHERE ITEM = @ITEM
Group by price
Having Count(*) > 1
Obviously this isn't working...can anyone please point me in the right direction?
Thanks in advance...