rajuchacha007 Posted July 6, 2010 Share Posted July 6, 2010 Hello experts, I have been trying to work on multiple select statements in ireport. I want to fire two different queries for header section and details section from two tables. How could I do it? I am trying by using inner join on. I am not able to see desired results. Assume I have got 2 tables called employee and org.EmployeeID code status code1 xyz present2 abc absent3 pqr presentfor header i want to use (i am using btw) following query.select employee.ID ,employee.CODE, employee.STATUS_CODE from employee table orgorg_ID ID name STATUS_CODE1 efg Y2 def N3 tyu N4 acd Yfor details i want to use following query.select org.ID,org.name,org.STATUS_CODE from org Is it possible to use 2 two different select queries from 2 different tables in ireport? Please advise/suggest. Thanks in advance.? Later I have been trying to use following statement to join although it's not correct technically as IDs should be different. I tried just for a chance.employee.ID ,employee.CODE, employee.STATUS_CODE ,org.ID,org.name,org.STATUS_CODE from employee INNER JOIN org ON emp.ID=org.ID Link to comment Share on other sites More sharing options...
rajuchacha007 Posted July 7, 2010 Author Share Posted July 7, 2010 Experts, has anyone worked on this? Is it possible to do it in query editor of ireport or should I change my track? Please suggest. Link to comment Share on other sites More sharing options...
mandm Posted July 8, 2010 Share Posted July 8, 2010 Looks like ireport cannot do it without using something like subreports Link to comment Share on other sites More sharing options...
rajuchacha007 Posted July 8, 2010 Author Share Posted July 8, 2010 @mandm. Thank you. Yes subreports might work for it. Any good tutorial of subreport which is easy to understand? I have gone through 2-3 tutorials but they are too fast and use much older version. I am using 3.7.1 Best regards. 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