Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Select top row for every product

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-01-18 : 08:33:09
Duleep writes "Dear support;
If i have a prodyct table with different product instances with the same product name and all those instances have a different price; How can i only select product instances with the highest price.
Product / Name / Price
Car - BMW £10000
Car - MB £15000
Car - VW £7000
Computer - IBM £500
Computer - DELL £250
Computer - HP £750

Out come should be
Car - MB £15000
Computer - HP £750

Thanks"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-18 : 08:35:22
Refer point 2
http://weblogs.sqlteam.com/mladenp/archive/2005/08/01/7421.aspx


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -