Summary
SQL provides us with many tools for mixing and cleaning data. We have learned how joins allow users to combine multiple tables, while UNION
and subqueries allow us to combine multiple queries. We have also learned how SQL has a wide variety of functions and keywords that allow users to map new data, fill in missing data, and remove duplicate data. Keywords such as CASE
WHEN
, COALESCE
, NULLIF
, and DISTINCT
allow us to make changes to data quickly and easily.
Now that we know how to prepare a dataset, we will learn how to start making analytical insights in the next chapter using aggregates.