Show the ids and details of the investors who have at least two transactions with type code "SALE".
create table transactions (investor_id varchar, transaction_type_code varchar, PRIMARY KEY (investor_id)); create table investors (investor_details varchar, investor_id varchar, PRIMARY KEY (investor_details))
select t2.investor_id, t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.transaction_type_code = "sale" group by t2.investor_id having count(*) >= 2