View Single Post
Old 12-11-2012, 11:02 AM   PM User | #4
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,907
Thanks: 10
Thanked 293 Times in 289 Posts
Dormilich is on a distinguished road
that can be done by a simple join.
Code:
SELECT
    -- fields here
FROM
    table_a
JOIN
    table_b USING (id)
WHERE
    table_a.is_set = 1;
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote
Users who have thanked Dormilich for this post:
Oatley (12-11-2012)