Tell me about a time you had to work with a set of data.
Using the provided dataset metadata and records, write a SQL query that identifies datasets with at least two valid records and summarizes those records.
dataset_name, owner_name, valid_record_count, average_value, and latest_record_date.valid; exclude datasets with fewer than two valid records.valid_record_count descending, then dataset_name ascending.| Column | Type | Description |
|---|---|---|
| dataset_idPK | INT | Unique identifier for a dataset |
| dataset_name | VARCHAR(100) | Name of the dataset |
| owner_name | VARCHAR(100) | Person responsible for the dataset |
| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Unique identifier for a data record |
| dataset_id | INT | Dataset associated with the record |
| record_date | DATE | Date on which the record was collected |
| status | VARCHAR(20) | Validation status of the record |
| record_value | DECIMAL(10,2) | Numeric value stored in the record |