What is the use of WITH TIES keyword in SELECT statement in SQL Queries?

前端 未结 7 1438
醉梦人生
醉梦人生 2021-01-30 20:15
SELECT TOP 5 WITH TIES EmpNumber,EmpName 
FROM Employee 
Order By EmpNumber DESC

This above query return more than five result, What is the use of \"Wi

7条回答
  •  时光取名叫无心
    2021-01-30 20:36

    With my understanding of WITH TIES clause, if you want to [duplicate values], which the column specified in the Order By.

提交回复
热议问题