I am using CR11.
I have my primary table, lets call it A, it has every order that we have ever created, opened, closed, does not matter.
Then I have table B.
Then I have Table C. It only has orders that we have worked on, it tracks how long different workcenters take to build their part of the job. So any new orders that have not been started yet will not show up in table C.
I have a left outer join From table A to Table B and
two left outer joins from table A to Table C.
This report is a scheduling report, it shows every order that we need to manufacture. Some may be in process some may not be started.
I only want to use table C to filter out jobs from each workcenter as they finish their part of the operation. I tried doing this by adding to the selection expert:
not(c.wc='1st END' and c.stat_flag='finished')
So if the "1st end" workcenter showed a status of finished I did not want to see it on the report. But when I do this it causes my entire report to only show information that exists in table C. I no longer see orders that are only in table A.
Here is my SQL statment:
I do not understand the SQL statement either, in the CR linking expert it shows the joins I mentioned above, but I do not see that in the SQL statement, I don't see table A mentioned at all in the join.
C. Johnson
I have my primary table, lets call it A, it has every order that we have ever created, opened, closed, does not matter.
Then I have table B.
Then I have Table C. It only has orders that we have worked on, it tracks how long different workcenters take to build their part of the job. So any new orders that have not been started yet will not show up in table C.
I have a left outer join From table A to Table B and
two left outer joins from table A to Table C.
This report is a scheduling report, it shows every order that we need to manufacture. Some may be in process some may not be started.
I only want to use table C to filter out jobs from each workcenter as they finish their part of the operation. I tried doing this by adding to the selection expert:
not(c.wc='1st END' and c.stat_flag='finished')
So if the "1st end" workcenter showed a status of finished I did not want to see it on the report. But when I do this it causes my entire report to only show information that exists in table C. I no longer see orders that are only in table A.
Here is my SQL statment:
Code:
SELECT "A"."MO_NUMBER", "A"."COMPONENT", "A"."ITEM", "A"."ORDER_QTY", "A"."QUANTITY", "A"."SCHED_DATE"
FROM "FSDBMR"."dbo"."A" "A"
SELECT "B"."TEAM", "B"."CUSTOMER NUMBER", "C"."WC", "C"."STAT_FLAG", "C"."MO_Number", "B"."PART_NO"
FROM "Silverado"."dbo"."C" "C" CROSS JOIN "Silverado"."dbo"."B" "B"
ORDER BY "B"."TEAM"
I do not understand the SQL statement either, in the CR linking expert it shows the joins I mentioned above, but I do not see that in the SQL statement, I don't see table A mentioned at all in the join.
C. Johnson