Comparing senior workouts
Let's say you're interested in comparing workouts by senior gym members by gym location and workout type. To do this, you need to use three different tables, which could get a bit messy. Lucky for you, common table expressions can help to make this a breeze!
This exercise is part of the course
Data Types and Functions in Snowflake
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
-- Create a senior_members temporary result set
___ ___ ___ (
SELECT
___
FROM CORE_GYM.members
WHERE personal_info:age::NUMBER > 60
)
SELECT * FROM senior_members;