dbTalk Databases Forums  

Top lines from SQLBASE table

comp.databases comp.databases


Discuss Top lines from SQLBASE table in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 06:41 AM






On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Quote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO
Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".

Ed


Reply With Quote
  #12  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 06:41 AM






On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Quote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO
Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".

Ed


Reply With Quote
  #13  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 06:41 AM



On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Quote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO
Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".

Ed


Reply With Quote
  #14  
Old   
Roy Hann
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 07:19 AM



"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO

Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".
One day I will post a funny story here, about how I lost my job after
top-slicing a table and supplying a minister with partial data in response
to a written question in parliament.

Roy




Reply With Quote
  #15  
Old   
Roy Hann
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 07:19 AM



"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO

Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".
One day I will post a funny story here, about how I lost my job after
top-slicing a table and supplying a minister with partial data in response
to a written question in parliament.

Roy




Reply With Quote
  #16  
Old   
Roy Hann
 
Posts: n/a

Default Re: Top lines from SQLBASE table - 05-19-2008 , 07:19 AM



"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On May 18, 1:23 pm, y.ambro... (AT) yahoo (DOT) fr wrote:
Dear Roy,

I am not sure that you caught my problem. The only thing I would like
to know is : To be able to get the top rows from a table even if the
ordering /way of sorting (ORDER BY CLAUSE) is made by DESC or ASC

Can you help me ?

Regards
A.YAO

Use a cursor and stop iterating after the first 100 fetches. There is
no standard way in SQL to define the "TOP(100)".
One day I will post a funny story here, about how I lost my job after
top-slicing a table and supplying a minister with partial data in response
to a written question in parliament.

Roy




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.