Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Provide brief explanation of following SQL code
Question: Review the following SQL code and give a brief explanation
SELECT 'AD', B.AccountID,'Change'
FROM
(SELECT DISTINCT A.sAMAccountName As AccountID from
(select AG.sAMAccountName from AD_Groups_Feed AGF FULL OUTER
JOIN AD_Groups AG ON AGF.GroupName = AG.GroupName AND AGF.sAMAccountName = AG.sAMAccountName WHERE AGF.GroupName Is NULL AND AG.sAMAccountName NOT IN (select AccountID from Exceptions where TargetID='AD')
UNION
select AGF.sAMAccountName from AD_Groups_Feed AGF FULL OUTER JOIN AD_Groups AG ON AGF.GroupName = AG.GroupName AND AGF.sAMAccountName = AG.sAMAccountName WHERE AG.GroupName Is NULL
AND AGF.sAMAccountName NOT IN (select AccountID from Exceptions where TargetID='AD')) A
WHERE A.sAMAccountName NOT IN (select AccountID from Exceptions where TargetID='AD'))B
Profile Answers by krypt83 Questions by krypt83
Questions by krypt83
Related Answered Questions
Related Open Questions