Re: Netsde Query

2002-06-25 Thread Victoria Reznichenko

harish,
Thursday, June 20, 2002, 9:52:37 AM, you wrote:

hv I am using mysql-4.0.1-alpha on windows 2000 professional
hv How to exceute nested query in MySql

hv select aeVcharEventId from alarmescalation where aeDtimeTimeStamp = (select
hv max(aeDtimeTimeStamp) from alarmescalation)


hv This query gives an error
hv you have an in your Sql syntax near '(select max(aeDtimeTimeStamp) from
hv alarmescalation)'

MySQL currently doesn't support sub-selects. Check the following link,
you can find some solutions here:
http://www.mysql.com/doc/e/x/example-Maximum-row.html




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: Netsde Query

2002-06-24 Thread Cal Evans

you don't.  Check the manual.  Nested queries are not yet supported. (4.1?)

=C=

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 1:53 AM
To: [EMAIL PROTECTED]
Subject: Netsde Query


Hello everybody!
I am using mysql-4.0.1-alpha on windows 2000 professional

How to exceute nested query in MySql

select aeVcharEventId from alarmescalation where aeDtimeTimeStamp = (select
max(aeDtimeTimeStamp) from alarmescalation)


This query gives an error
you have an in your Sql syntax near '(select max(aeDtimeTimeStamp) from
alarmescalation)'

Regards
Harish Varandani


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php