Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Query

Status
Not open for further replies.

adwanoy

MIS
Apr 10, 2006
37
US
Keyword Priority
A 1
A 1
A 2
A 3
B 2
B 3
C 1
C 2
C 3
IN the above data, I want only the top 1 priority for each Keyword, so the results should be:
A 1
B 2
C 1
 
Code:
Select   KeyWord, MIN(Priority) As [Lowest Priority]

From     myTable 

Group By KeyWord


[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top