繁体   English   中英

选择多年来发表的作者

[英]Selecting the authors who have published in all the years

我有一张包含他们的名字,书名和出版年份的作者表格。 时间范围是从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
        )

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM