What are the different names and credit scores of customers who have taken a loan?
SELECT DISTINCT T1.cust_name ,  T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id
different names and credit scores of customers who have taken a loan refers to DISTINCT T1.cust_name, T1.credit_score; joining customer and loan tables on customer ID;