看板
[ Database ]
討論串[SQL ] 同一表格同一欄位資料統計
共 6 篇文章
內容預覽:
select coalesce(t1.class,t2.class), coalesce(t1.cnt,0), coalesce(t2.cnt,0). from (. select class, count(*) as cnt. from table. where finish != ''. gro
(還有130個字)
內容預覽:
cutekid大大的方法,可以用,但因為我敘述不清,所以不適用,歹勢. select finish,sum(*) from yield_process where finish=0 or finish=1 group by finish. qwertmn大大的方法我試了,無法執行,不知是因為pgsq
(還有250個字)