How to separate two functions in a Oracle query?
What else can be used other than || ' -- '|| to use more than one function in a query?
For e.g.: SELECT RTRIM(ACCOUNT_ID) || ' -- '|| length (account_id) from tblaccount;
as RTRIM and LENGTH are functions so there has to be something in between like || ' -- '||
for this query in order to run.
As below query which has nothing between RTRIM and LENGTH
SELECT RTRIM(ACCOUNT_ID) length (account_id) from tblaccount;
Gives ERROR: 'FROM keyword not found where expected'

VulpesRank #55 · 29.2K reputationPosted Mar 14, 2011, 2:59 AM EDT
See if the following will work:
SELECT CONCAT(RTRIM(account_id), CONCAT('--', TO_CHAR(LENGTH(account_id))) from tblaccount
Syed Arbab Ahmed88 reputationPosted Mar 14, 2011, 11:38 PM EDT
Thanks for your guidance.