An insurer wants the total current-year investment value (tiv_2016) for policyholders who meet both conditions: their tiv_2015 equals the tiv_2015 of at least one other policyholder, and no other policyholder is at the same location (the same lat and lon pair). Write an SQL query that returns a single column, tiv_2016, rounded to 2 decimal places.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.