안녕하세요~
아래와 같이 A를 B와 같은 결과로 쿼리를 하려고 합니다.
TIME만으로 SORTING하면 A처럼 되는데요, B와 같은 결과를 구하려면 어떻게 해야 할지 몰라서요...
조언 부탁드립니다.
A
NO | TIME |
0545 | 2015-11-05 8:00 |
0021 | 2015-11-05 14:55 |
0021 | 2015-11-08 5:55 |
0545 | 2015-11-08 6:00 |
0021 | 2015-11-10 20:30 |
0545 | 2015-11-10 22:00 |
0021 | 2015-11-18 21:50 |
0545 | 2015-11-18 23:24 |
0021 | 2015-11-19 21:00 |
0545 | 2015-11-19 21:30 |
0021 | 2015-12-02 4:15 |
0545 | 2015-12-02 10:51 |
0545 | 2015-12-04 14:21 |
0021 | 2015-12-04 14:48 |
0545 | 2015-12-06 13:06 |
0021 | 2015-12-06 14:00 |
0021 | 2015-12-07 23:32 |
0545 | 2015-12-08 0:11 |
0021 | 2015-12-21 21:00 |
0545 | 2015-12-21 22:01 |
0021 | 2015-12-22 14:00 |
0545 | 2015-12-22 14:00 |
0021 | 2015-12-25 6:32 |
0545 | 2015-12-25 11:00 |
B
NO | TIME |
0545 | 2015-11-05 8:00 |
0545 | 2015-11-08 6:00 |
0545 | 2015-11-10 22:00 |
0545 | 2015-11-18 23:24 |
0545 | 2015-11-19 21:30 |
0545 | 2015-12-02 10:51 |
0545 | 2015-12-04 14:21 |
0545 | 2015-12-06 13:06 |
0545 | 2015-12-08 0:11 |
0545 | 2015-12-21 22:01 |
0545 | 2015-12-22 14:00 |
0545 | 2015-12-25 11:00 |
0021 | 2015-11-05 14:55 |
0021 | 2015-11-08 5:55 |
0021 | 2015-11-10 20:30 |
0021 | 2015-11-18 21:50 |
0021 | 2015-11-19 21:00 |
0021 | 2015-12-02 4:15 |
0021 | 2015-12-04 14:48 |
0021 | 2015-12-06 14:00 |
0021 | 2015-12-07 23:32 |
0021 | 2015-12-21 21:00 |
0021 | 2015-12-22 14:00 |
0021 | 2015-12-25 6:32 |