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.
我有一个作者表,其中包含他们的姓名、书名和出版年份。时间段如果从 2000 年到 2010 年。
我想选择在所检查的时间间隔的每一年都发表过(至少一次)的作者。我怎样才能做到这一点?好心提醒。
select * from pubs where author in ( select author from pubs where publicationYear between 2000 and 2010 group by author having count(distinct publicationYear) = 11 )