zain.nabi Posted April 11, 2019 Share Posted April 11, 2019 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 More sharing options...
hozawa Posted April 12, 2019 Share Posted April 12, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now