Hi JarlH,
Thank you for your reply and help.
I able to solve the problem, but i keep get this error message "ORA-01445: Cannot select ROWID from, or sample, a join view without a key-preserved table" when i do inner join table.
the SQL as follow:-
SELECT LPAD(a.Branch, 3, '0')||
CASE
WHEN...