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

Multiple select statements on ireport\'s editor


rajuchacha007

Recommended Posts

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.

Employee

ID           code                status code

1             xyz                    present

2            abc                  absent

3            pqr                   present

for header i want to use (i am using btw) following query.

select employee.ID ,employee.CODE, employee.STATUS_CODE from employee

 

table org

org_ID     

ID            name                 STATUS_CODE

1             efg                        Y

2             def                        N

3              tyu                        N

4             acd                        Y

for 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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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