Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » SQL Server » Revisions
Add your own
alternative version

SQL Server: TOP…WITH TIES - A Beauty of TSQL

, 19 Apr 2013 CPOL
The TOP clause is commonly used to get the top required rows from a result set. The beauty of this clause is that it can be used with the WITH TIES clause to retrieve all similar rows to a base result set.



Compare Revision Minor Date Status Editor
6 - publicly available No 19-Apr-13 10:56 Available Smitha Vijayan
Updates in content. 25 changes had been made.
5 No 2-Apr-13 14:20 Available Deeksha Shenoy
Updates in content. 35 changes had been made.
3 No 21-Oct-12 13:38 Pending aasim abdullah
screen shot files saved on codeproject
2 No 21-Oct-12 3:00 Pending aasim abdullah
Updates in content. 7 changes had been made.
1 No 21-Oct-12 2:59 Pending aasim abdullah
Initial creation


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

aasim abdullah
Team Leader CureMD
Pakistan Pakistan
Aasim Abdullah is working as SQL Server DBA with CureMD ( based in NY, USA. He has been working with SQL Server since 2007 (Version 2005) and has used it in many projects as a developer, administrator, database designer. Aasim's primary interest is SQL Server performance tuning. If he finds the time, he like to sketch faces with graphite pencils.
Follow on   Twitter   Google+

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150327.1 | Last Updated 19 Apr 2013
Article Copyright 2012 by aasim abdullah
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid