P
psynet123
Unregistered / Unconfirmed
GUEST, unregistred user!
還可以寫成
select a.* from aa as a,(
select sname from aa
where cj='優'
group by sname
having count(*)=(select max(icount) from (select count(*) as icount from aa group by stime) as a)) as b
where a.sname=b.sname
select a.* from aa as a,(
select sname from aa
where cj='優'
group by sname
having count(*)=(select max(icount) from (select count(*) as icount from aa group by stime) as a)) as b
where a.sname=b.sname