PC Review


Reply
Thread Tools Rate Thread

How do i get the product of max. price in access2007 query?

 
 
amr
Guest
Posts: n/a
 
      5th May 2010
in query i want to get product ID with the Max. or Min. price
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      5th May 2010
The SQL statement for a query to do that would be

SELECT ProductID
FROM SomeTable
WHERE Price = DMax("Price","SomeTable")

OR

SELECT TOP 1 ProductID
FROM SomeTable
ORDER BY Price DESC

IF you need something more specific post more details on what you are
attempting to do.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

amr wrote:
> in query i want to get product ID with the Max. or Min. price

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Product & Price lists Aimee UMS Microsoft Excel Worksheet Functions 1 18th Aug 2008 06:37 PM
i need your new product details and price ligeshkumar.k@gmail.com Printers 1 13th Jan 2008 10:12 PM
Query - Latest Price of a Product =?Utf-8?B?V29vIE11biBGb29uZw==?= Microsoft Access Queries 3 4th Aug 2005 08:29 AM
Product/Price menu Rbalse Microsoft Excel Misc 2 30th Jul 2004 01:46 AM
Product price update Michael Miller Microsoft Access Getting Started 3 31st Oct 2003 12:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 AM.