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!

delete records based on a minimum value per group

Status
Not open for further replies.

mkjjj

Technical User
Sep 10, 2013
6
0
0
US
rows

id term
1 932
1 934

2 992
2 1008

3 944
3 1014

I want to delete any ids if their first term was less than 992 so in the example above, only the 2 rows for id 2 would remain in the database, since id 2 first term is 992. I'm thinking that I would need a group by and having but not sure where in a statement to place it.

Help is appreciated. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top