In a Jupyter notebook, use pandas to merge datasets and draw conclusions from the result
Asked in the technical round 2 stage. Write a PostgreSQL query equivalent using securities and daily_prices for February 2025.
security_id, ticker, asset_name, observed_days, avg_close, latest_close, and coverage_status.| Column | Type | Description |
|---|---|---|
| security_idPK | INT | Unique security identifier |
| ticker | VARCHAR(10) | Market ticker symbol |
| asset_name | VARCHAR(100) | Security name |
| asset_type | VARCHAR(40) | Security classification |
| is_active | BOOLEAN | Whether the security is currently active |
| Column | Type | Description |
|---|---|---|
| price_idPK | INT | Unique price observation identifier |
| security_id | INT | Referenced security identifier |
| price_date | DATE | Date of the price observation |
| close_price | NUMERIC(14,4) | Closing market price |