블로그 이미지

calendar

1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
  • total
  • today
  • yesterday
2020. 9. 4. 13:20 Database관련/Oracle

select

max(text) keep(dense_rank first order by testno desc) as max_text,

max(test_sno) keep(dense_rank first order by testno desc) as max_sno,

max(testno) keep(dense_rank first order by testno desc) as max_no

from test

where

test_sno=1;

출처: https://lee-mandu.tistory.com/35 [개발/일상_Mr.lee]

 

posted by 천상의날개