Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot implement column link for this detail SQL query. Converting to group

user5345Jan 6 2013 — edited Jan 7 2013
Dear All,

Im working on the oracle aging report, my report has 2 data models. 10g database.

in the 2nd data model im using case function to get the buckets column. And when i trying to link the above error is appearing. Below is the code which i have used.

(case when trunc (trunc (sysdate)-trunc (trx.trx_date)) <= 60 then '1-60 Days'
else (case when trunc (trunc (sysdate)-trunc (trx.trx_date)) <= 120 then '2-120 Days'
else (case when trunc (trunc (sysdate)-trunc (trx.trx_date)) <= 180 then '3-180 Days'
else (case when trunc (trunc (sysdate)-trunc (trx.trx_date)) <= 365 then '4-365 Days'
else '5-365+ Days' end) end)end)end) bucket

The same how can i use in the decode function to aviod the problem, please can any one help me this query.

tnxs
Siva.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2013
Added on Jan 6 2013
2 comments
1,327 views