List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.
create table claims (claim_id varchar, date_claim_made varchar, date_claim_settled varchar, claim_id varchar, PRIMARY KEY (claim_id)); create table settlements (claim_id varchar, PRIMARY KEY (claim_id))
select t1.claim_id, t1.date_claim_made, t1.date_claim_settled from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) = 1