Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: 'select * from (select * from table order by field)' doesn't work: msg#00241

db.maxdb

Subject: RE: 'select * from (select * from table order by field)' doesn't work

Hello Alexei,

'ORDER BY' clauses in sub-selects (as usually used in Oracle for achieving the
results
you want) never worked for MaxDB/SAP DB. There is
only the "trick" of fetching only the first n result rows from a result
available.

Regards
Alexander Schröder
SAP DB, SAP Labs Berlin

> -----Original Message-----
> From: Alexei Novakov [mailto:alexei-novakov@xxxxxxxxxx]
> Sent: Friday, February 18, 2005 9:26 AM
> To: MaxDB mailing list.
> Subject: 'select * from (select * from table order by field)'
> doesn't work
>
> Hello,
>
> I'm running MaxDB 7.5.0.18 on Windows. In order to get
> first several ordered records I use usual query:
>
> select * from
> (
> select * from
> some_table
> order by some_column
> )
> where rowno < 2
>
> I get the error here:
>
> * -5016: Missing delimiter: ) SQLSTATE: 42000
>
> Obviously it doesn't like 'order by' clause in
> subselect, as soon as I remove it like:
>
> select * from
> (
> select * from
> some_table
> )
> where rowno < 2
>
> It works fine, but it's not what I need. I have some
> feeling that such queries were working in older
> versions of SAPDB/MaxDB. Is there some tricks to do to
> make it work? Or maybe there is other way to get
> limited sorted output in MaxDB?
>
> Thank you.
>
> Alexei
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
> http://lists.mysql.com/maxdb?unsub=alexander.schroeder@xxxxxxx
>
>

--
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>
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo