dbt - Advanced Patterns
What will be the result of this dbt model SQL snippet?
SELECT id, COUNT(*) AS cnt
FROM (
SELECT id FROM {{ ref('source_a') }}
UNION ALL
SELECT id FROM {{ ref('source_b') }}
) combined
GROUP BY idWhat will be the result of this dbt model SQL snippet?
SELECT id, COUNT(*) AS cnt
FROM (
SELECT id FROM {{ ref('source_a') }}
UNION ALL
SELECT id FROM {{ ref('source_b') }}
) combined
GROUP BY id15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions