SQL> select dr_drvname, ic_cabnum, ic_incitype 2 from (driver JOIN shift ON sh_drvnum = dr_drvnum) JOIN incident ON ic_wkdate = sh_wkdate 3 where ic_wkdate = '15-NOV-2007' 4 order by dr_drvnum;
I get the correct selections but I am getting multiples for each incident type.
DR_DRVNAME IC_ IC_INCITYPE
------------------------------ --- ------------
Pettit, R. Richardson 215 TICKET
Pettit, R. Richardson 144 TICKET
Pettit, R. Richardson 144 TICKET
Pettit, R. Richardson 144 TICKET
Pettit, R. Richardson 455 TICKET
Hickman, Ronald S. 215 TICKET
Hickman, Ronald S. 215 TICKET
Hickman, Ronald S. 215 TICKET
Hickman, Ronald S. 144 TICKET
Hickman, Ronald S. 144 TICKET
Hickman, Ronald S. 144 TICKET
Why is this happening and what do I need to change?
Thanks
The output I should be getting based on my table should have only 6 incidents with no repeating information.

New Topic/Question
Reply


MultiQuote



|