I am working in SQL server. I have some number like 130-0029. I need to get the integer after the - delimiter out of it. So in this example I need to return 29. These are the following scenarios I have with this,
- The pattern may differ like
130-00000029or130-0029. - If there are all 0's then print
0, else get actual number like29.
Please advise/suggest me on this.