|
|
Choosing A Webhost: |
Re: How do I get x rows after ordering and grouping?: msg#00185db.maxdb
Hi Jose, I'm afraid there is no way to do this except filtering your result set by throwing out records you don't need. I ran into the same issue some time ago hoping that Oracle style (select * from (select * from a order by col) where rowno < 10) query would work, but it didn't because 'order by' clause is not supported in subqueries in MaxDB (actually they are not supposed to by standard). Let's hope that some king of mechanism to support limited ordered output (like: top/limit/order-by-in-subqueries/etc.) will be implemented sooner or later. Regards. Alexei. --- José Rómulo Elías Contreras <romulo@xxxxxxxxxxxxxxxxxxxx> wrote: > Hi: > > How do I get x number of rows in a select > statement after > ordering and grouping? > > I have the next select statement: > > SELECT * FROM SALES ORDER BY CREATION_DATE > > This statement give me many rows, but I only > need de first 20 > rows, or only I need the rows 20 to 40, or only I > need the last 20 rows, > it depends. > > Are there any form to handle it? > > THANKS > > > -- > MaxDB Discussion Mailing List > For list archives: http://lists.mysql.com/maxdb > To unsubscribe: > http://lists.mysql.com/maxdb?unsub=alexei_novakov@xxxxxxxxx > > -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: SAP DB 7.4.3/33 Restore Problem Using HP's Data Protector 5.5, Claypool, Fred |
|---|---|
| Next by Date: | RE: ODBC on W98 and WME, Koetter, Thomas Theodor |
| Previous by Thread: | Re: How do I get x rows after ordering and grouping?, Daniel Dittmar |
| Next by Thread: | Replication, darrell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|