Quote:
Originally Posted by sr71000 |
I would go with the join method in mentioned in this article
T-Code Auth_Object Attribute Attribute Value
select *
from table 1 t1
LEFT OUTER join table2 t2
on t1.[t-code] = t2.[t-code]
LEFT OUTER join table2 t2
on t1.[auth_object] = t2.[auth_object]
LEFT OUTER join table2 t2
on t1.[Attribute] = t2.[Attribute]
LEFT OUTER join table2 t2
on t1.[Attribute Value] = t2.[Attribute Value]
WHERE [t-code] IS NULL
OR [auth_object] IS NULL
OR Attribute IS NULL
OR [Attribute value] IS NULL
btw, this will give you half the results you want, you can figure out the rest
FYI I
REALLY dont like the structure of this table
1. Spaces in column names
2. hyphens in column names
3. No standard in seperating words (I typically change case of first letter in each word AttributeValue). If you dont like changed case, then keep with underscore, with hyphens you have to use brackets and they're just annoying

4. Attribute and Attribute value probably shouldn't be in the same table.