Jump to content
We've recently updated our Privacy Statement, available here ×

Jasper - Select first Item from group using Expressions


zain.nabi

Recommended Posts

I have  TextFields that displays a list of zones and stations i n a grid layout. The zones col has a list of zone names and station avg's. The stations col has a station name and station avg. A zone has many stations and not all stations has a avg.

How do I select one zone and display all stations that has readings only. I am using sql to create the query.

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Not sure what you are asking. If you are asking how to write a sql statement to query a particular zone, just create a parameter and use that in the sql query statement.

For example, create a parameter named "zone". 

In this case, the sql query would be like below (I'm assuming the table name containing zone information is "zones".

SELECT * FROM zones WHERE zone = $P{zone}

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...