Rabu, 05 Januari 2011
Select TOP With TIES in SQL Server
The SQL Server TOP Expression returns only the first set of rows that is either a number or a percent of rows. If you want additional rows to be returned from the base result set if duplicate values exists in the qualified set of results, then use TOP..WITH TIES as shown in the example below: USE NorthwindGO-- TOP vs TOP WITH TIES-- By SqlServerCurry.com-- Using TOP ExpressionSELECT TOP 3OrderID,
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar