Jump to content
JasperReports 7.0 is now available ×

Query doesn't recognize existing ALIAS in query dialog


Recommended Posts

Hi all,


I receive the following error: column "Code" does not exists.

(SELECT value FROM table WHERE id = $P{order_id}) as Code,


sum( case when ( Code ='ME') then Weight/1000*5 else 0 end) ME,

It seems that the query doesn't recognize the subquery.


Has anyone an idea what the cause is of this error?


Thanks in advance for any help / insights.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It doesn't recognise the alias 'CODE'.

However, the alias CODE does exists and can be used in the report.

But not in the query.

Is there a fix for this? Or an other way to achieve it?

Thanks for any help.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...