|
|
|
выбор уникальных значений в запросе
|
|||
|---|---|---|---|
|
#18+
Есть выборка SELECT AccountingDate, ClientOrderID, PostingID, RezonItemID, sum(case when ActionTypeID IN (401, 1003) then Qty else -Qty end) Qty Как сделать чтобы в случае задвоения по ClientOrderID, PostingID в Qty для одного RezonItemID стоял 0 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.10.2021, 10:04:22 |
|
||
|
|

start [/forum/search_topic.php?author=noobcode&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
8ms |
get forum list: |
16ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
163ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 680ms |
| total: | 935ms |

| 0 / 0 |
