Question: Show the premise type and address type code for all customer addresses.
Schema: create table premises (premises_type varchar, premise_id varchar, PRIMARY KEY (premises_type)); create table customer_addresses (address_type_code varchar, premise_id varchar, PRIMARY KEY (address_type_code))
SQL: select t2.premises_type, t1.address_type_code from customer_addresses as t1 join premises as t2 on t1.premise_id = t2.premise_id