You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`SELECT AVG(CASE WHEN "duration" LIKE '%min%' THEN CAST(SUBSTRING("duration" FROM '([0-9]+)') AS INTEGER) WHEN "duration" LIKE '%hr%' THEN CAST(SUBSTRING("duration" FROM '([0-9]+)') AS INTEGER) * 60 ELSE NULL END) AS "average_duration" FROM "netflix_shows" WHERE "listed_in" ILIKE '%Thriller%' LIMIT 100`
1673
1673
]
1674
1674
},
1675
+
{
1676
+
title: 'column at time zone',
1677
+
sql: [
1678
+
"SELECT start_time AT TIME ZONE 'UTC' AS start_time FROM my_table",
1679
+
`SELECT start_time AT TIME ZONE 'UTC' AS "start_time" FROM "my_table"`
1680
+
]
1681
+
},
1682
+
{
1683
+
title: 'column cast with at time zone',
1684
+
sql: [
1685
+
"SELECT start_time::timestamp AT TIME ZONE 'UTC' AS start_time FROM my_table",
1686
+
`SELECT start_time::TIMESTAMP AT TIME ZONE 'UTC' AS "start_time" FROM "my_table"`
0 commit comments