Question : conditions between 3 tables

please see attached sample table values

                                    
CONDITIONS:                                          
A.COL1=B.COL1 and A.COL2 and B.COL2                                          
CONDITION 1:                                          
There will always be one NULL in COL3 for each (COL1+COL2) combination in TableA. We should ignore that row.                                          
Other than the NULL in Col3, if A.COL1+A.COL2+A.COL3 is all same - this is condition 1A                                            
(The col1, col2 value of 55,66 and also 33,44 are examples of condition 1A, where col3 is the same.                                          
For Condition 1A,  the corresponding PK in TableB should not have a Child record in TableC - This is condition 1B                                          
For A.COl1=55 and A.COL2=66 and A.COL3= A, the corresponding PK in TableB is 9, and there is no child records in TableC                                          
For A.COl1=33 and A.COL2=44 and A.COL3= A, the corresponding PK in TableB is 8, and there is a child record in TableC                                          
Condition 1A+1B should bring COL1+COL2+COL3 as the result output. (In this example, it is 55,66,A)                                           
The example of 33,44,A does not qualify                                          
                                          
CONDITION 2:                                          
There will always be one NULL in COL3 for each (COL1+COL2) combination in TableA. We will ignore that row.                                          
Other than the row with NULL in Col3, if A.COL3+A.COL4+A.COL5 do not all have the same combination but some are same -it qualifies                                          
In other words, if there is at least one duplicate.                                          
The example would be the combination of A.COL1+A.COL2+A.COL3 = (1,2,A), because it is repeated twice, so                                           
A.COL1,C.COL2,A.COL3 qualify to be output                                          
                                          
Other than the row with NULL in Col3, if A.COL3+A.COL4+A.COL5 are all distinct, it dis-qualifies                                          
example: 11,22 - All COL3 are distinct (other than NULL column)                                          
                                          
How will you go about to achieve the result?                                          
thanks                                          
            
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
TABLE A							
col1	col2	col3	col4	col5	col6		
1	2	A	2	5	10		
1	2	A	2	6	11		
1	2	B	3	4	12		
1	2	NULL	5	6	13		
1	2	C	3	4	14		
11	22	A	32	3	10		
11	22	B	23	35	11		
11	22	C	4	77	12		
11	22	NULL	6	6	13		
11	22	D	88	8	14		
33	44	A	2	5	10		
33	44	A	2	6	11		
33	44	A	3	4	12		
33	44	NULL	5	6	13		
33	44	A	3	33	4		
55	66	A	5	9	5		
55	66	A	4	7	776		
55	66	A	2	77	89		
55	66	NULL	77	6	96		
55	66	A	8	9	44		
							
							
TABLE B							
PK	col1	col2	col3	col4	col5		
1	1	2	1	2	A		
2	1	2	1	2	B		
3	1	2	1	2	C		
4	11	22	11	22	A		
5	11	22	11	22	B		
6	11	22	11	22	C		
7	11	22	11	22	D		
8	33	44	33	44	A		
9	55	66	55	66	A		
							
TABLEC							
PK	TABLEB_FK	VALUE					
1	2	X					
2	5	W					
3	8	Y					
							
DESIRED RESULT:							
1	2	A					
55	66	A

Answer : conditions between 3 tables

>ip route 0.0.0.0 0.0.0.0 FA0
Don't use an ethernet interface as a default route. Always use the IP address of the next-hop that is directly connected to this interface. Causes all manner of ARP issues and traffic delays. Serial interface is OK because it is not a broadcast interface.
Reference
https://supportforums.cisco.com/message/3030916;jsessionid=7847BCECBB613537104BEC30C4D1669E.node0
Random Solutions  
 
programming4us programming4us