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
  • 84,884
  • 22
  • 182
  • 268
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
  • 40,041
  • 8
  • 39
  • 58
0
SELECT name, GroupName, Level
FROM table
WHERE Level = '1'
Matt
  • 14,007
  • 25
  • 88
  • 136