What is the average credit score for customers who have taken a loan?
select avg(credit_score) from customer where cust_id in (select cust_id from loan)