This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH transaction AS ( | |
| SELECT transaction_id, | |
| customer_id, | |
| state, | |
| amount_spent_usd | |
| FROM FACT_TABLE_TRANSACTION | |
| ), | |
| customer_spend AS ( | |
| SELECT customer_id, | |
| state, |