The analytics team wants to find loans whose principal exceeds the average principal for their specific loan type. Return the loan id, loan_type, principal, and interest_rate. Sort by principal descending.
Schema
🔑idINT
🔗customer_idINT
loan_typeTEXT
principalREAL
interest_rateREAL
term_monthsINT
start_dateTEXT
statusTEXT
postgresql
Run your query to see results
Press Ctrl + Enter to execute