Skip to content
Advertisement

Snowflake-SQL – Add row from one query to another query

I’m looking for assistance in combining query results.

I have one query that results in:

The query:

and I have another query that results in:

The query:

Is there a way to add the TypeACount column to the second query?

Advertisement

Answer

You can run both queries in a table expressions in a CTE and then join them.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement