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
 General SQL Server Forums
 New to SQL Server Programming
 SQL QUERY

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-15 : 07:38:09
Itsme writes "Query to implement the following:
To select the Top 2 details (name,category etc.)per model from a group of models.
Eg: ModelID ModelName Category Call No
Mod1 xyz cat1 5
Mod1 abc cat2 6
Mod2 yy cc 2
Mod2 ds xfd 4
Mod2 er dfgf 10
Mod2 dg sfds 11
Mod3 fg dg 5
Mod3 fgdd kjk8 15
Mod3 fgfdhggh sas 6"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-15 : 07:59:16
Refer point 2 here
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 -