|
Не сортирутеся по дате!
|
|||
---|---|---|---|
#18+
select sum(sm.quantity*pl.price), to_char(sale_dat,'mm.yyyy') as datee from salemap sm, pricelist pl where sm.prod_id = pl.prod_id and sm.dat = pl.dat and sm.men_pers_code = (select men_pers_code from saleman where name = 'name1') group by to_char(sale_dat,'mm.yyyy') order by datee desc взозвращает так 211.75 ---- 01.2019 858 ---- 08.2018 564.75 --- 09.2018 нужно чтобы учитывался год, т.е. было 858 ---- 08.2018 564.75 --- 09.2018 211.75 ---- 01.2019 ... |
|||
:
Нравится:
Не нравится:
|
|||
15.12.2019, 16:45 |
|
|
start [/forum/search_topic.php?author=jjj32&author_mode=last_topics&do_search=1]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
67ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 1201ms |
total: | 1385ms |
0 / 0 |