@Orchard Marketing Analytics needs to monitor how conversion performance changes across acquisition channels. Write a PostgreSQL query that calculates each channel's daily conversion rate and its 30-day rolling average.
NULL when visits are zero.NULL daily rates when calculating the rolling average, and round both rates to four decimal places.| Column | Type | Description |
|---|---|---|
| performance_idPK | INTEGER | Unique performance record identifier |
| channel | VARCHAR(50) | @Orchard acquisition channel |
| activity_date | DATE | Date associated with the performance record |
| visits | INTEGER | Number of attributed visits |
| conversions | INTEGER | Number of completed conversions |