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
There is a technique to "intentionally" make CTE and physical table names the same. We will deal with this.
Sample
with
sale_summarys as (
select
store_id
, sum(price) as price
from--Physical
sales
group by
store_id
),
sales as (
select*from--Physical
sales
)
select*from--CTE
sale_summarys
;
with
sales as (
select*from--Physical
sales
),
sale_summarys as (
select
store_id
, sum(price) as price
from--CTE
sales
group by
store_id
)
select*from--CTE
sale_summarys
The text was updated successfully, but these errors were encountered:
There is a technique to "intentionally" make CTE and physical table names the same. We will deal with this.
Sample
The text was updated successfully, but these errors were encountered: