George Too
Registered User.
- Local time
- Today, 09:55
- Joined
- Aug 12, 2002
- Messages
- 198
Hi All,
This might have been answer on another occasion but I can't seem to find anything that looks similar.
The following SQL
SELECT EDGW_HOLD.RunDate, CCOEORDE_RIZZO.PROJNO, CCOEORDE_RIZZO.ONUM, CCOEORDE_RIZZO.FPNUM, EDGW_HOLD.Ticket, EDGW_HOLD.Defect, EDGW_HOLD.Footage
FROM (CCOEORDE_RIZZO INNER JOIN EDGW_HOLD
ON CCOEORDE_RIZZO.PROJNO = EDGW_HOLD.Project)
INNER JOIN CCOEITEM_RIZZO ON CCOEORDE_RIZZO.FPNUM = CCOEITEM_RIZZO.INUM
GROUP BY EDGW_HOLD.RunDate, CCOEORDE_RIZZO.PROJNO, CCOEORDE_RIZZO.ONUM, CCOEORDE_RIZZO.FPNUM, EDGW_HOLD.Ticket, EDGW_HOLD.Defect, EDGW_HOLD.Footage
HAVING (((EDGW_HOLD.RunDate)>#1/1/2007#) AND ((EDGW_HOLD.Defect)="Dirty Print"));
gives me the results attached (see pic attached)
I guess the duplication is expected but how can I do the following:
A. Get number of tickets issued not counting duplicates
B. Sum footage for each ticket not counting duplicates
Any help would be appreciated.
Thanks.
This might have been answer on another occasion but I can't seem to find anything that looks similar.
The following SQL
SELECT EDGW_HOLD.RunDate, CCOEORDE_RIZZO.PROJNO, CCOEORDE_RIZZO.ONUM, CCOEORDE_RIZZO.FPNUM, EDGW_HOLD.Ticket, EDGW_HOLD.Defect, EDGW_HOLD.Footage
FROM (CCOEORDE_RIZZO INNER JOIN EDGW_HOLD
ON CCOEORDE_RIZZO.PROJNO = EDGW_HOLD.Project)
INNER JOIN CCOEITEM_RIZZO ON CCOEORDE_RIZZO.FPNUM = CCOEITEM_RIZZO.INUM
GROUP BY EDGW_HOLD.RunDate, CCOEORDE_RIZZO.PROJNO, CCOEORDE_RIZZO.ONUM, CCOEORDE_RIZZO.FPNUM, EDGW_HOLD.Ticket, EDGW_HOLD.Defect, EDGW_HOLD.Footage
HAVING (((EDGW_HOLD.RunDate)>#1/1/2007#) AND ((EDGW_HOLD.Defect)="Dirty Print"));
gives me the results attached (see pic attached)
I guess the duplication is expected but how can I do the following:
A. Get number of tickets issued not counting duplicates
B. Sum footage for each ticket not counting duplicates
Any help would be appreciated.
Thanks.