petejigsaw
MIS
Hi
I am working on a report based on a series of tables from a CRM system. My problem is how to show easily on a report the analysis of what parts of an order are faulty and why.
There are 3 tables that are relevant:
csc_item
csc_itemfault
csc_faultcode
csc_item lists the singular item that is faulty, and links to csc_itemfault using a simple inner join.
csc_itemfault then indicates how the fault on the item was analysed with up to 3 fault codes:
prefaultcodeID
secfaultcodeID
terfaultcodeID
Each faulty item must have at least prefaultcodeID set, but most have all three. These are simple integer fields.
To analyse these, the integer fields refer to values and descriptions in csc_faultcode, and this is where I'm stuck.
How do I link csc_itemfault to csc_faultcode in a manner so that I can show, for each single faulty item, all faultcode descriptions?
Simply linking on prefaultcodeID retrieves only the first fault description.......
Thanks in anticipation
I am working on a report based on a series of tables from a CRM system. My problem is how to show easily on a report the analysis of what parts of an order are faulty and why.
There are 3 tables that are relevant:
csc_item
csc_itemfault
csc_faultcode
csc_item lists the singular item that is faulty, and links to csc_itemfault using a simple inner join.
csc_itemfault then indicates how the fault on the item was analysed with up to 3 fault codes:
prefaultcodeID
secfaultcodeID
terfaultcodeID
Each faulty item must have at least prefaultcodeID set, but most have all three. These are simple integer fields.
To analyse these, the integer fields refer to values and descriptions in csc_faultcode, and this is where I'm stuck.
How do I link csc_itemfault to csc_faultcode in a manner so that I can show, for each single faulty item, all faultcode descriptions?
Simply linking on prefaultcodeID retrieves only the first fault description.......
Thanks in anticipation