|
|
|
pl sql SUM CASE COUNT
|
|||
|---|---|---|---|
|
#18+
Добрый день! Как можно использовать конструкцию SUM : У меня есть COUNT(); //a=месяц(январь-1, февраль-2 и т.д) //b=условие 1 //с=условие 2 //COUNT(case when b=2 and c=3 then 1 end )IVAN, //COUNT(case when b=3 and c=4 then 1 end )PETR SUM(case when a=1 /*COUNT(case when b=2 and c=3 then 1 end )IVAN*/then 1 end) January; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2019, 16:30 |
|
||
|
|

start [/forum/topic.php?fid=47&msg=39794819&tid=1829216]: |
0ms |
get settings: |
5ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
152ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 219ms |
| total: | 440ms |

| 0 / 0 |
