Write a basic SQL query to pull all records from the last 30 days that have an active phone number.
Assume the relevant date is activity_date. Include only records dated from 30 days ago through today, with phone_status equal to active and a non-null, non-empty phone_number.
record_id ascending.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique identifier for the record |
| person_name | VARCHAR(100) | Name associated with the record |
| activity_date | DATE | Date of the recorded activity |
| phone_number | VARCHAR(25) | Phone number associated with the record |
| phone_status | VARCHAR(20) | Current status of the phone number |