Skip to content

  • Home
  • About
  • Contact
  • Scripts

Category: SQL Tips

TOP(n) WITH TIES

TOP(n) WITH TIES

Most SQL developers are familiar with using TOP(n) to return a desired number of results, but what if our ORDER BY column ends up having matching results, do we want to see them? If so, we can use WITH TIES in conjunction with TOP(n). "WITH TIES Used when you want to return two or more rows … Continue reading TOP(n) WITH TIES

Posted on 2018-03-162018-03-16 by dan.clemensPosted in SQL, SQL TipsTagged SQL Tips, TOP. Leave a comment

Follow me on the interwebz

  • LinkedIn
  • Twitter

Tags

CROSS APPLY Handy Tools Implicit Conversion Interviewing OUTPUT PARTITION SWITCH Professional Development SQL Tips TOP TSQL2SDAY

Categories

  • Handy Tools
  • SQL
  • SQL Tips
  • TSQL2SDAY
  • Uncategorized

Twitter feed

My Tweets

Categories

  • Handy Tools
  • SQL
  • SQL Tips
  • TSQL2SDAY
  • Uncategorized
Website Built with WordPress.com.
  • Follow Following
    • drcdba.com
    • Already have a WordPress.com account? Log in now.
    • drcdba.com
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...