Database: insurance_policies
Question: 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.
SQL:
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