0

我有一个作者表,其中包含他们的姓名、书名和出版年份。时间段如果从 2000 年到 2010 年。

我想选择在所检查的时间间隔的每一年都发表过(至少一次)的作者。我怎样才能做到这一点?好心提醒。

4

1 回答 1

3
select  *
from    pubs
where   author in
        (
        select  author
        from    pubs
        where   publicationYear between 2000 and 2010
        group by
                author
        having
                count(distinct publicationYear) = 11
        )
于 2013-02-02T19:10:14.713 回答