0
Column DEPENDENCY: T - Titular; E - Esposa; F - Filhos; FA - Filho Adotivo
As table above, how do I bring data only of CEP S that are divergent as the CEP of the Holder:
Titular Admilson has 2 children with different zip code, as well as titular Marcelo.
Abusing a little more, it is possible to bring the data of the holder and right below the data of the children with the divergent strains?
Igor, thanks for the help, but this select brought 5 equal records of each holder, not bringing the holder and dependents with divergent strains.
– MJAGO
I think you just switch the columns of select. I edited the answer. See if it now works.
– igventurelli
Igor, I did this but it’s bringing in data of holders who do not belong to the family.
– MJAGO
I edited the answer again. I could post (comment) the SQL result?
– igventurelli
Igor, it worked out, thank you very much, I put a filter in the records that were disabled and the select worked perfect. Thanks!!
– MJAGO
Cool guy! I’m glad I helped. If you think the answer solved the problem could mark as solution, please?
– igventurelli
Sure, marked and again, thank you very much.
– MJAGO