sql server 判断相同值的数据

 

举个栗子, 求出相同作者的书

 


select from [books]

 where author in (select author from [books] group by author having count(author) > 1)

 

posted @ 2016-01-19 17:34  facial  阅读(1459)  评论(0编辑  收藏  举报