Could someone give me a little assistance in creating the correct predicates needed for the following query?
select a.NeighborhoodModelOptionId, a.OptionId, b.NeighborhoodId,
d.Name as NeighborhoodName, b.NeighborhoodModelId, c.ModelId,
c.Name as ModelName, a.OptionTypeCode, a.Price, a.IsActive
from NeighborhoodModelOption a right outer join NeighborhoodModel b
on a.NeighborhoodModelId = b.NeighborhoodModelId and (a.OptionId = 'b0c6133f-0f03-4a10-a82b-9cfd8166257b' or a.OptionId is null)
inner join Model c on b.ModelId = c.ModelId
inner join Neighborhood d on b.NeighborhoodId = d.NeighborhoodId
where b.IsActive = '1'
and b.NeighborhoodId = '53f0def5-4b8b-4b84-8a10-11c6471b6f15'