I have to add a leading 0 in a column called houses, where it is a unique list of 3 digits, but I wanted have to add a leading 0 to it --> so 4 digits instead of 3. Can someone help me with this query as the code is incompatible in the '|' operator.
The code is as follows:
select houses from house_numbers order by houses; select houses, case when len(houses)=3 then '0' | houses when len(houses)=4 then '' | houses end as houses from house_numbers
houses?