This is closely related to this question, but adds another requirement.
Given a parent table \'parent\'
╔════════════╦════════╗ ║ PARENT_ID ║ NAME
Hope this will help you:
SELECT p.PARENT_ID , r.PROP_ID FROM rel r LEFT JOIN parent p ON p.PARENT_ID = r.PARENT_ID WHERE r.PROP_ID = 5 OR r.PROP_ID = 1