SQL Server 2008: TOP 10 and distinct together

后端 未结 13 1556
刺人心
刺人心 2021-02-04 23:41

As the title says, I\'m using SQL Server 2008. Apologies if this question is very basic. I\'ve only been using SQL for a few days. Right now I have the following query:

相关标签:
13条回答
  • 2021-02-05 00:13
    select top 10 * from
    (
        select distinct p.id, ....
    )
    

    will work.

    0 讨论(0)
提交回复
热议问题