Alcon is reviewing the completeness of contact records used for customer communications. Given the t1 table, write a PostgreSQL query that calculates what percentage of records contain an email address.
Treat an email address as present when email is non-null. The result should be safe against division by zero and should report the percentage rounded to two decimal places.
records_with_email / total_records * 100.| Column | Type | Description |
|---|---|---|
| name | VARCHAR(100) | Alcon contact name |
| VARCHAR(255) | Contact email address |