All,
I have 3 tables
Table 1 - Contains single column called routes: i.e. A,B,C,D,E,F etc
Table 2 - Contains single column called Job Code i.e. 1,2,3,4 etc
Table 3- contains the values, if there is any for the above 2 tables. it has 3 columns: Route, Job Code, and Value i.e A , 2, 345
There is a hierarchy to these tables. Each Route, will have every single job code
I want to write a query combining all 3 tables. However even though table 3 might not have any entries for any of the combinations for Tables 1 and 2. I want the query to force all combinations of tables 1 and 2 to be outputted and then a 0 for any nulls
Help required many thanks