human
Schema:
bank (branch_ID, bname, no_of_customers, city, state)
customer (cust_ID, cust_name, acc_type, acc_bal, no_of_loans, credit_score, branch_ID, state)
loan (loan_ID, loan_type, cust_ID, branch_ID, amount)
Please answer with SQL.
assistant
Sure, I understand.
human
FIND THE NAME OF CUSTOMER WHO HAS THE LOWEST CREDIT SCORE
assistant
SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1;
human
FIND THE NAME OF CUSTOMER WHO HAS THE HIGHEST CREDIT SCORE
assistant
SELECT cust_name FROM customer ORDER BY credit_score desc LIMIT 1 ;