-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What are the results you expect.  There are always workarounds

Adrian

On Fri, 30 Mar 2001, Ramasamy Palaniappan wrote:

> Sir,
> 
> created the following tables as primary and secondary
> 
> primary : partycode(primary key),partyname
> 
> secondary : partycode(references to primary),companyname
> 
> select partycode,companyname from secondary where partycode=(select
> partycode from primary where partyname="xxxx");
> 
> as per mysql - the above query returns the syntax error.
> 
> please send the correct syntax and also the below query
> 
> select partycode,companyname from secondary where partycode='select
> partycode from primary where partyname="xxxx"';
> 
> if we try to execute the above code, it returns an empty set even if the 
> values are there in the table.
> 
> I am expecting the reply sir.
> 
> regards
> 
> palani
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6xYov/f1mUNueu/oRArvuAKCDVWBl1pm9xlRbzsOKnV3C9C90QQCaApCE
nUJ7VOTiTtjYbaNmd8gwrtQ=
=xL3I
-----END PGP SIGNATURE-----


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