select uname,pass,count(*)
grouping(t1.uname) 人名次数,
grouping(t1.pass) 通过次数
from
t1,t2
where t1.uname=t2.username
and t2.username in (...)
rollup(uname,pass)
having grouping(t1.uname)=1
or
having grouping(t1.pass)=1
grouping(t1.uname) 人名次数,
grouping(t1.pass) 通过次数
from
t1,t2
where t1.uname=t2.username
and t2.username in (...)
rollup(uname,pass)
having grouping(t1.uname)=1
or
having grouping(t1.pass)=1
grouping(t1.uname) 人名次数,
grouping(t1.pass) 通过次数
from
t1,t2
where t1.uname=t2.username
and t2.username in (...)
rollup(uname,pass)
having grouping(t1.uname)=1
or
having grouping(t1.pass)=1