Transforming text data
If you take a look, all user_id's in the members table start with user_ followed by a string of numbers. You're interested in providing members with their unique user ID, minus the user_ prefix. This will allow them to quickly sign in to their app and the gym itself. In this exercise, you'll practice using two different tools to do this.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Data Types and Functions in Snowflake
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
SELECT
user_id,
-- Return all the text after user_ in the user_id field
___(user_id, '___')[___] AS split_user_id
FROM CORE_GYM.members;