The simplest way to do so is to create a temporary table from the results of
the first query (CREATE TEMPORARY TABLE t1 SELECT...), then run your second
query on the temporary table.
MySQL doesn't yet support sub-selects, which would be the way to do what
you're describing in one query.
Nick
> -----Original Message-----
> From: W. Enserink [mailto:enserink@stripped]
> Sent: Monday, June 17, 2002 5:33 AM
> To: mysql@stripped
> Subject: queries within queries
>
>
> hi all,
>
>
> I made a query: the result are given back to me. Now I want to perform
> another query within these results.
>
> Is this possible?
>
>
> thx for all tips.
>
> regards Wilbert
>
> -------------------------
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> info@stripped
> -------------------------
>
> ---------------------------------------------------------------------
> 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 <mysql-thread112182@stripped>
> To unsubscribe, e-mail
> <mysql-unsubscribe-narnett=mccmedia.com@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php