title: mysql:how to get max id from duplicated row group by 2 columns?
body: <p>I have one table name "sections_content" that has the following columns</p>
  
  <p><a href="https://i.stack.imgur.com/xckMW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xckMW.png" alt="enter image description here"></a></p>
  
  <p>and I want to get max id for each statecode and policyname</p>
  
  <p>So ,for example,the result of statecode CN / IL /IE should be</p>
  
  <p><a href="https://i.stack.imgur.com/GWcuL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GWcuL.png" alt="enter image description here"></a></p>
  
  <p>How should I write the code for mysql ?</p>
  
  <p>thanks.</p>