dbTalk Databases Forums  

Select Top x

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Select Top x in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
darkwerks
 
Posts: n/a

Default Select Top x - 02-03-2010 , 05:05 AM






Hi.
Does "Select top x from y" perform a "full table scan"?

Reply With Quote
  #2  
Old   
tduemesnil
 
Posts: n/a

Default Re: Select Top x - 02-03-2010 , 06:35 AM






On 3 Feb., 11:05, darkwerks <pazr... (AT) darkwerks (DOT) de> wrote:
Quote:
Hi.
Does "Select top x from y" perform a "full table scan"?
With out a sort order the result is not deterministic.
If your order clause is supported by an index it is using an index
scan.

HTH
Thomas

Reply With Quote
  #3  
Old   
darkwerks
 
Posts: n/a

Default Re: Select Top x - 02-03-2010 , 09:39 AM



On 3 Feb., 12:35, tduemesnil <tduemes... (AT) googlemail (DOT) com> wrote:
Quote:
On 3 Feb., 11:05, darkwerks <pazr... (AT) darkwerks (DOT) de> wrote:

Hi.
Does "Select top x from y" perform a "full table scan"?

With out a sort order the result is not deterministic.
If your order clause is supported by an index it is using an index
scan.

HTH
Thomas
Yes of course, but want i meant was: Does TOP x reads/scans/loads the
whole table.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.