Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
したがって、ActsIn と Stars の 2 つのテーブルがあります。4本以上の映画に出演した俳優の名字と出演作品数をリストアップしたい.
現在のコードでは、アクターの ID しか表示できません。どうすれば、アクターの名と姓も表示できますか?
select a.Starid, s.givenname, s.familyname, count(*) from Actsin as a inner join Stars as s on s.Starid = a.Starid group by a.Starid, s.givenname, s.familyname having count(*) >= 4