Jump to content

Matching up queries.


Derleek

Recommended Posts

given that race_id is the PK of table Race_racer and id is an FK to the PK of table Racers:

 

SELECT B.name
FROM Race_racers as A
INNER JOIN Racers as B ON B.id = A.id
WHERE B.id = 'value_id_match'
AND B.class = 'value_class_match'
AND B.race_id = 'value_race_id_match'

 

cheers,

 

Jay

Link to comment
https://forums.phpfreaks.com/topic/112985-matching-up-queries/#findComment-580652
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.