|
|
|
group by
|
|||
|---|---|---|---|
|
#18+
Здраствуйте! Задача: select to_char(data,'YYYY') as "year" from press where publish = 1 group by year order by year desc Нужно из поля типа date выдернуть год и сгруппировать результат по нему. Ораклий ругается, перелопатил документацию ничего не нашел. Есть идеи?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.02.2001, 18:01 |
|
||
|
group by
|
|||
|---|---|---|---|
|
#18+
Вот так должно работать select to_char(data,'YYYY') as "year" from press where publish = 1 group by to_char(data,'YYYY') order by to_char(data,'YYYY') desc ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 16.02.2001, 18:26 |
|
||
|
group by
|
|||
|---|---|---|---|
|
#18+
И так должно работать: select to_char(data,'YYYY') as "year" from press where publish = 1 group by to_char(data,'YYYY') order by year desc ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.03.2003, 13:57 |
|
||
|
|

start [/forum/topic.php?fid=52&gotonew=1&tid=1991371]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
135ms |
get topic data: |
7ms |
get first new msg: |
4ms |
get forum data: |
3ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 241ms |
| total: | 444ms |

| 0 / 0 |
