쿼리 질문 드립니다.
순서 | 종류 | X 값 | Y 값 |
1 a_type 300 0
2 b_type 20 2
3 b_type 330 3
4 b_type 310 0
5 a_type 310 0
6 b_type 3100 0
7 b_type 3100 0
8 b_type 330 0
9 c_type 3300 0
10 c_type 410 0
11 c_type 300 0
12 c_type 340 0
13 c_type 20 0
14 c_type 10 0
15 c_type 3100 0
16 c_type 100 0
17 c_type 100 0
테이블이 있는데
종류 순서 x y
a_type 5 310 0
b_type 8 330 0
c_type 17 100 0
순서가 젤 높은것부터 종류를 묵어서 해당 값을 보고 싶습니다. 셀프 조인해서 할려구해도 max 값을가지고 비교가 안되니....
|