|
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&fpage=37&tid=1829216]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
28ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 123ms |
0 / 0 |