|
Не сортирутеся по дате!
|
|||
---|---|---|---|
#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/topic.php?fid=50&msg=39903191&tid=1873946]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
35ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 137ms |
0 / 0 |