HI LOW AVERGAGE

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Hi;

Have a database that needs to show the Highest price for a product and the
lowest price.

$100.00 low price $1,000.00 high.

Any suggestions?

Andy
www.WTCInformMe.com
 
You can try something like

SELECT TOP 1 price FROM table ORDER BY price

and

SELECT TOP 1 price FROM table ORDER BY price DESC

Of course, you should change table and price to coresponding table and field
from your database.

Regards,

Slaven
 
How about something like:

SELECT ProdID
, MIN(Price) as MinPrice
, MAX(Price) as MaxPrice
FROM yourTable
GROUP BY ProdID

--
HTH

Dale Fye


Hi;

Have a database that needs to show the Highest price for a product and
the
lowest price.

$100.00 low price $1,000.00 high.

Any suggestions?

Andy
www.WTCInformMe.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top