My SQL query is returning 'A' from one field '15' from another field in the same table.
The values need to be concatenated and then printed in a column in a report.
In that report, the two-digits need to have '00' immediately in front of them so that it appears as A0015.
The day will come when whenever new data is inserted into the database, it will be prepended with '00' at that time, but until then, I need to figure out how to prepend the returned data with '00' in my query.
I have tried the following:
-selecting as varchar
-BatchChar+'00'BatchNumber
-CONCAT(BatchChar, BatchNumber) just to see if I could perform a simple concatenation - I couldn't...
Clearly, I'm missing something.
Any help would be most appreciated.
The values need to be concatenated and then printed in a column in a report.
In that report, the two-digits need to have '00' immediately in front of them so that it appears as A0015.
The day will come when whenever new data is inserted into the database, it will be prepended with '00' at that time, but until then, I need to figure out how to prepend the returned data with '00' in my query.
I have tried the following:
-selecting as varchar
-BatchChar+'00'BatchNumber
-CONCAT(BatchChar, BatchNumber) just to see if I could perform a simple concatenation - I couldn't...
Clearly, I'm missing something.
Any help would be most appreciated.