In a message dated Tue, 25 Sep 2001 1:17:04 PM Eastern Daylight Time, Yuval yuval@KRSW.CO.IL writes:
Hi BO experts,
I have 2 queries in the same report as follows:
Query1
EMP_Num Department Placed in Department
1 Sales 18/1/2000
1 R&D 18/5/2000
1 QA 18/2/2001
2 R&D 18/3/2000
2 QA 31/9/2001
Query2
EMP_Num Child Name Child Birthday
1 Joe 17/1/1969
1 Tami 14/5/1985
2 Yoni 19/8/1974
2 Tom 16/7/1972
2 Fred 25/6/1989
What I am trying to get is a report that looks like this:
EMP_Num Department Placed in Department Child Name Child
BDay
1 Sales 18/1/2000
Joe 17/1/1969
1 R&D 18/5/2000
Tami 14/5/1985
1 QA 18/2/2001
2 R&D 18/3/2000
Yoni 19/8/1974
2 QA 31/9/2001
Tom 16/7/1972
2
Fred 25/6/1989
Is it possible to do that in BO ?
What you are asking for does not make sense, actually. If you try to put everything into one block, you are forcing a relationship between “child” and “department”, and the number of children an employee has will have nothing to do with the department that he/she is in. It’s meaningless.
What you can do is use the “Set as Master” option, and create two blocks. Your data would then look like this:
Employee Number ###
Block 1 Block 2
Department Assigned to Dept Child Name Birthday
Some employees may have 5 children and only one department. Others may have 5 departments and no children. By separating the two pieces of information into separate blocks, combining with a Master / Detail (section) structure, you will get an appropriate picture of your data.
You can simulate this by creating a query using Island Resorts. Select Customer, Invoice Date, Number of Guests, Reservation Date, and Future Guests. BusObj will automatically generate the correct output format.
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
Listserv Archives (BOB member since 2002-06-25)