|
|
|
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&fpage=2799&tid=1991371]: |
0ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
48ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 200ms |
| total: | 324ms |

| 0 / 0 |
