Sorry if it's obvious but I'm really new to SQL. My data looks like this
Policy | Years | |
---|---|---|
Pol1 | John@gmail | 1 |
Pol1 | John@gmail | 1 |
Pol1 | Jo@aol. | 5 |
Pol1 | Jo@aol. | 6 |
How do I get it to pull the data for each policy, but only the ones with the highest years for each policy. So rows 2 and 4