I can't because it is really very big query. i want to split this query into small queries for maintenance.
I have modified the queries to display the data always (atleast null values). But now i have one issues.
here is the actual situation.
My master query is returning 2 rows
ID Desc
1 HR
2 FINANCE
I have 2 child queries.
First Child query is returning the below values.
ID RegEmpCount
1 50
2 20
First Child query is returning the below values.
ID UnRegEmpCount
1 10
2 40
In my report I want to display like this
ID DEPT RegEmpCount UnRegEmpCount TargetMet?
1 HR 50 40 Yes ( RegEmpCount - UnRegEmpCount >0)
ID DEPT RegEmpCount UnRegEmpCount TargetMet?
2 FINANCE 20 40 NO ( RegEmpCount - UnRegEmpCount >0)
How to write TargetMet? formula? RegEmpCount is from one group and UnRegEmpCount is another group. is ther any way? Please suggest me.
Main Topics
Browse All Topics





by: MilleniumairePosted on 2009-02-26 at 06:57:23ID: 23745277
You would be better off building the report to use a single query rather than two queries linked together. The single query would then perform the required outer join to retrieve exactly the data you want to see.
In the data model you would create two groups from the single query i.e. a parent and a child. The report layout will be exactly the same as if you had used two queries as it is based on two groups.