mxw09

SELECT distinct top  2  LastName FROM [dbo].[Employees] order by LastName

 distinct要放到top前面,这样取出的结果是先将数据Distinct去重复,然后再取其中的前两行

分类:

技术点:

相关文章:

  • 2021-06-11
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2021-09-13
  • 2021-09-13
  • 2022-12-23
  • 2022-01-03
  • 2022-02-06
  • 2021-06-21
  • 2022-12-23
相关资源
相似解决方案