Gary Sahota

Gary Sahota

CITUS BLOG AUTHOR PROFILE

PUBLISHED ARTICLES
Gary Sahota

Fun with SQL: Unions in Postgres

Written by By Gary Sahota | September 27, 2018 Sep 27, 2018

Before joining the Citus Data team to work on the Postgres extension that transforms Postgres into a distributed database, I checked out the Citus Data blog to learn a bit more. And found all sorts of material for Postgres beginners as well as power users, with one of my favorites being the "Fun with SQL" series. After I joined, I jumped at the chance to write a Fun with SQL post, and the only question was what to write about. I chose unions.

In SQL, the UNION and UNION ALL operators help take multiple tables and combine the results into a single table of all matching columns. This operator is extremely useful if you want the results to come back as a single set of records.

Keep reading

Page 1 of 1