CREATE TABLE t_account( account varchar(100), account_type TINYTEXT, PRIMARY KEY (account), };
select account_type 账号类型,count(account) 账号数 from t_account group by account_type having count(account)>5000
select account_type 帐号类型,count(account) 帐号数 from t_account where account_type in (select account_type from t_account where count(account_type)>5000)
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题