Re: Limiting the amount of rows

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: David Gugick (davidg-nospam_at_imceda.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 10:45:01 -0400

Hugo Kornelis wrote:
> On Wed, 22 Sep 2004 18:59:03 -0700, MTKIRWAN wrote:
>
>> However I want the result set to list the top 10 records. This could
>> be done using the top 10 function. However as you can see Attribute
>> value 10 and 11 both have the total of 2 and are therefore
>> equilvalent. So I really want the top 11 returned in this case. If
>> Attribute value 12 had been 2 then I would have wanted the top 12 etc
>>
>> How can I do this?
>
> TOP 10 WITH TIES
>
> ?
>
> Best, Hugo

I guess you learn something every day. Never knew.

-- 
David Gugick
Imceda Software
www.imceda.com


Relevant Pages

  • Re: sort
    ... Hugo Kornelis wrote: ... Geez. ... was filled with big brains... ... David Gugick ...
    (microsoft.public.sqlserver.programming)
  • Re: Composite Key Quesion
    ... Hugo Kornelis wrote: ... >> working, but could use optimization. ... > Hi Russell, ... David Gugick ...
    (microsoft.public.sqlserver.programming)