Hi everyone,
I am trying to write a query that will compare two tables and report the differences. The differences can occur on two levels, screen differences with is a field called USER_TRAN_CD and individual permissions are stored in the fields user_tran_cd, user_inq_cd, user_add_cd, user_chg_cd, user_dlt_cd, user_q_cd.
I keep hitting a brick wall. I can't even get the query to tell only report which screens are occuring in Michele table but not Allison. I tried this query:
But nothing is returned. Looks like it should to me. I'm telling it to only show me user_tran_cds that are not existing in the sub query. What am I missing?
I am trying to write a query that will compare two tables and report the differences. The differences can occur on two levels, screen differences with is a field called USER_TRAN_CD and individual permissions are stored in the fields user_tran_cd, user_inq_cd, user_add_cd, user_chg_cd, user_dlt_cd, user_q_cd.
I keep hitting a brick wall. I can't even get the query to tell only report which screens are occuring in Michele table but not Allison. I tried this query:
Code:
select * from michele
where not exists
(SELECT *
FROM michele a,
ALLISON b
WHERE a.USER_TRAN_CD=b.USER_TRAN_CD)
But nothing is returned. Looks like it should to me. I'm telling it to only show me user_tran_cds that are not existing in the sub query. What am I missing?