Abstract
SQL and set theory are quite related, but in practical daily life, many developers (the author included) do not worry too much about theory. Maybe as a consequence thereof, it is typically more seldom to see the set operators used than joins. But maybe because the set operators aren’t used as much, too often code is seen where the developer unwittingly fell into one of the pitfalls that exists, specifically concerning using distinct sets or sets with duplicates. And when you then add that the set and multiset operators have opposite defaults, confusion can easily abound. This chapter attempts to clear that confusion.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Kim Berg Hansen
About this chapter
Cite this chapter
Berg Hansen, K. (2020). Pitfalls of Set Operations. In: Practical Oracle SQL. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5617-6_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5617-6_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5616-9
Online ISBN: 978-1-4842-5617-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books