MulaiMulai sekarang secara gratis

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!

Latihan ini adalah bagian dari kursus

Data Types and Functions in Snowflake

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

-- Create a senior_members temporary result set
___ ___ ___ (
    SELECT
        ___
    FROM CORE_GYM.members
    WHERE personal_info:age::NUMBER > 60
)

SELECT * FROM senior_members;
Edit dan Jalankan Kode