December 2017
Beginner to intermediate
264 pages
5h 38m
English
Many of the functions discussed so far in this chapter can be used for the sanitation/transformation phase of data warehousing. Let's look at some of these functions with the specific task of sanitization/transformation:
CASE WHEN region = "W" THEN "West" WHEN region = "E" THEN "East" END AS region
SUM(revenue) / COUNT(orders) AS average_order_value