I was expecting the following query to return null rows where there wasn't a matching row in the WEBSITE_URL table when using the left join. So what i want to see is all url types from the URLTYPE table and any matching records in the WEBSITE_URL table.
SELECT
WU.NC_WEBSITE_ID_FK,
WU.TC_URL,
UT.TC_URLTYPE_NAME
FROM
WEBSITE_URL WU,
URLTYPE UT
WHERE
WU.NC_URL_TYPE_ID_FK(+) = UT.NC_URLTYPE_ID
AND
NC_WEBSITE_ID_FK = '1622'
This is the output:
1622 http://www.test.com PRODUCTION (PUBLIC)
1622 http://preprod.test.com PREPRODUCTION
1622 http://review.test.com REVIEW