I have an incremental field for each record in my table.
I want to add leading zeros to the number to make them all the same number of characters but also CAST() letters to the front of the number as an identifier.
Adding the leading zeros;
SELECT RIGHT('00000' + CONVERT(VARCHAR, No_), 6)
Adding my identifier;
SELECT 'FC' + CAST(No_ as varchar(50))
What is the correct syntax for combining these two statements to the one field? Is it possible?
try
Result: For No_ = 1
For No_ = 222