Hi,
I need to count the number of checks issued for a given day. This needs to go in a fixed length flat file and be right justified zero filled across 10 places.
When I use
rpad(to_char(count(a.check_number),'0000000000')||' ',11)
Then I get an additional space in the front( 0000000005). If I use
rpad(to_char(count(a.check_number),'0000000000')||' ',10) then the count at the end goes away( 0000000000).
If I use to_char(count(a.check_number),'0000000000' then I get ( 0000000005) - still an additional space in the front.
How do I format this to get (0000000005).
Please help.
Thanks.
I need to count the number of checks issued for a given day. This needs to go in a fixed length flat file and be right justified zero filled across 10 places.
When I use
rpad(to_char(count(a.check_number),'0000000000')||' ',11)
Then I get an additional space in the front( 0000000005). If I use
rpad(to_char(count(a.check_number),'0000000000')||' ',10) then the count at the end goes away( 0000000000).
If I use to_char(count(a.check_number),'0000000000' then I get ( 0000000005) - still an additional space in the front.
How do I format this to get (0000000005).
Please help.
Thanks.