0

I have a duplicated row but not the same value in the all example:

Name , Group , Level
SKILL_CHAR_FRONTAREA_A_01 SKILL_CHAR_FRONTAREA_A 1
SKILL_CHAR_FRONTAREA_A_02 SKILL_CHAR_FRONTAREA_A 2

I need to select the top one between them, using the order by level desc.

Flexo
  • 87,323
  • 22
  • 191
  • 272
user2684159
  • 11
  • 1
  • 5

2 Answers2

0

Do you mean you want the row with the lowest or highest level value?

select Name , Group , min(Level)
from yourtable
group by Name , Group

Change min to max if you want the highest level.

jarlh
  • 42,561
  • 8
  • 45
  • 63
0
SELECT name, GroupName, Level
FROM table
WHERE Level = '1'
Matt
  • 14,906
  • 27
  • 99
  • 149