title: Trimming both 0 and trailing/leading spaces doesn't give results - MySQL
body: <p>I have the below situation in the database where accounts could have leading 0 and white spaces.</p>
  
  <p><a href="https://i.stack.imgur.com/fP7Kh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fP7Kh.png" alt="enter image description here"></a></p>
  
  <p>If I use  <code>TRIM(TRIM(LEADING '0' FROM account_ref)) as account_ref_trimmed</code>, I get:</p>
  
  <p><a href="https://i.stack.imgur.com/aCXRX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCXRX.png" alt="enter image description here"></a></p>
  
  <p>Question, is it correct to put trim inside the trim? Secondly, why in row 5, there is still a leading 0?</p>