with loc_1 as (SELECT cast(datestr_start as date) as date_month, index_nsa as 'FL' FROM real_estate.freddie_mac_house_price_index WHERE geo_name = 'FL'), loc_2 as (SELECT cast(datestr_start as date) as date_month, index_nsa as 'CA' FROM real_estate.freddie_mac_house_price_index WHERE geo_name = 'CA') SELECT loc_1.date_month, loc_1.`fl`, loc_2.`ca` FROM loc_1 join loc_2 ON loc_1.date_month = loc_2.date_month WHERE loc_1.date_month >= '2010-01-01' ORDER BY loc_1.date_month desc
All Tables
Database

Table

Metadata
commodities oil_brent_daily
commodities oil_wti_daily
crypto fact_coin_price_history
real_estate freddie_mac_house_price_index
stocks company
stocks nasdaq_listed
stocks s_and_p_500
stocks stock_price
stocks stock_price_history_daily