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

New report from Excel and all using an SQL query


jkeri

Recommended Posts

I need to create a report that uses and Excel sheet as input... It contains 'city', and 'sales' fields. For each 'City' filed in the  Excel , I want to do a query against an oracle table.

 

What i dont know is how to even begin the design... Should i do a subreport ?    How can i use the 'city' filed in the Excel as a key/paramater to pull out data from my SQL query?

 

Select city, sales from AnnualSales where city =  city from the excel

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  1. create a jrxml with excel datasource.

create a grouping based on the excel datasource city. 

Inside the group header/footer. create a table element which would use the sql query and fetch the records from database.

pass the city group value into the table element which will filter as per the group value.

 

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