เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Breaking down a timestamp

Your development team is after you again! They'd like the data that a user checked into the gym in a certain format so they can expose it in the app. In this exercise, you'll use Snowflake to extract different components of a timestamp to provide this information!

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Data Types and Functions in Snowflake

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

SELECT
    v.user_id,
    m.user_location,
    v.checkin_time,
    
    -- Extract the day name from checkin_time
    ___(___) AS day_name
    
FROM CORE_GYM.visits AS v
JOIN CORE_GYM.members AS m
    ON v.user_id = m.user_id;
แก้ไขและรันโค้ด