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.
所以我有 2 个表:ActsIn 和 Stars。我想列出出现在 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