0

I am trying to normalize a field in SQL.

Example:

HXDF469LDI

HXDF469801LDI

This is missing the preceding zeros before the 469.

It should be HXDF000469LDI or HXDF000469801LDI.

The preceding zeros can vary from 1-5 zeros missing. There should be six numbers after the HXDF but because some also contain an extension of 801, 802 and etc not sure how to do this.

tgolisch
  • 6,549
  • 3
  • 24
  • 42
Veronica
  • 1
  • 1

0 Answers0