O'Reilly logo

SQL Fundamentals, Third Edition by John J. Patrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Union and Union All

The union was introduced in the last chapter because it was needed to code a full outer join. In this chapter, we discuss the union in detail. Union and union all provide two more ways to combine tables.

Forming a union can be a very powerful technique. Unfortunately, many people do not understand it or use it very well. Skillful use of unions can replace many more complex features of SQL, such as outer joins or if-then-else logic.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required