Code
SELECT
i.IND_NAME
FROM
Individual i,
Assignment a,
Task t,
Package p
WHERE
i.IND_NAME = a.IND_NAME
AND a.ASSIGNMENT_ID = t.ASSIGNMENT_ID
AND t.TASK_CODE = p.TASK_CODE
AND p.PACKAGE_ID = ?
That's of course assuming you need something from Task as well as just getting the IND_NAME from Individual. If you just needed the name(s), you could just join Individual to Package on the IND_NAME. Also, you probably shouldn't ever use a VARCHAR2 containing people's names as a primary key. Really bad form.
This post was edited by rockonkenshin on Mar 27 2013 07:58pm