Sub-Selects do not work on MySQL Yet.

Wait for Version 4.1.  I am waiting!!!!!

In the mean time you could do this

SELECT * FROM MarketData INNER JOIN Contacts ON MarketData.CustID =
Contacts.CustID WHERE Contacts.CustID = 1;

HTH

JFernando
** sql ***

Original Message:
-----------------
From:  [EMAIL PROTECTED]
Date: Wed, 6 Nov 2002 20:59:06 EST
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: statement doesnt work onMySQL


Hi,

I have the following SQL statement that works fine on Access but it doesn't 
work on MySQL...

select MarketData.*  FROM MarketData where MarketData.CustID IN
(SELECT ContactID  from Contacts where CustID =1)

Any advise please??

Regards,

Sam

---------------------------------------------------------------------
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



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.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

Reply via email to