Fijate que tu ejemplo, esta mal ...
Nit Fecha Valor Nit Fecha Valor
1 11012009 100 1 11012009 100
2 12012009 100
1 11012009 100
3 13012009 100
ES ...
Nit Fecha Valor Nit Fecha Valor
1 11012009 100 1 11012009 100
2 12012009 100
2 12012009 100
3 13012009 100
Esto te trae los registros que estan en ambas tablas.
Código:
select
t1.*,
t2.*
from
tabla t1
join tabla2 t2 on t2.nit = t1.nit
y esta consulta te trae los registros que no estan en ambas tablas ...
Código:
select
t1.*
from
tabla1 t1
where
t1.nit not in(select nit from tabla2 as t2)
union
select
t2.*
from
tabla2 t2
where
t2.nit not in(select nit from tabla1 as t1)