> Given this example:
> table CARS
> has got an entity "Labourghini" with car_id=5
> table NEWS
> has got an entity "Lambourghini displays new super model" with
> date=2002-05-02, news_id=735 and car_id=5
> I want this output:
> NEWS HEADLINES
> <date>: <headline> (<car_brand>)
> Can I do this without 2 select queries?
I *believe* what you want is this:
SELECT news.*, cars.{car_name/brand_field}WHERE
cars.car_id = 5 AND
cars.car_id = news.car_id;
Chris
---------------------------------------------------------------------
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