Question : left join with specific right table records

I have 2 tables titles and requests

requests has a field for the date of the request and an id of teh person requesting it

select * from titles left join requests titles on titles.id=requests.title

This will show all the tiles and the corresponding requests (if any). A person can have multiple requests for a given title. Fine.

I need a query that will show all title but in each title instead of all requests only those of a specific person...

Answer : left join with specific right table records

select * from titles left join (Select * from requests where person = <somevalue> ) as q1
on titles.id=q1.title
Random Solutions  
 
programming4us programming4us