Database: financial
Question: What is the percentage of loan amount that has been fully paid with no issue.
SQL: SELECT (CAST(SUM(CASE WHEN status = 'A' THEN amount ELSE 0 END) AS REAL) * 100) / SUM(amount) FROM loan