{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

1 the case of outer joins with the using clause is a

Info iconThis preview shows pages 7–8. Sign up to view the full content.

View Full Document Right Arrow Icon
1 The case of outer joins with the using clause is a little more complicated; with a right outer join it is possible that R 1 . A 1 is null, but R 2 . A 1 is not, and the output should contain the non-null value. The SQL coalesce function can be used, replacing S by coalesce ( R 1 . A 1 , R 2 . A 1) , coalesce ( R 1 . A 2 , R 2 . A 2) , . . . coalesce ( R 1 . An , R 2 . An ), followed by the other attributes of R 1 and R 2.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}