Write a SQL query to get the first and last purchase date for each customer.
Use the purchases table. Include customers whose records contain only a NULL purchase date.
customer_id, first_purchase_date, and last_purchase_date.customer_id in ascending order.| Column | Type | Description |
|---|---|---|
| purchase_idPK | INT | Unique identifier for the purchase |
| customer_id | INT | Identifier of the customer who made the purchase |
| purchase_date | DATE | Date on which the purchase occurred |