Hi,
I have a table which have the following columns
Id Member Access BossName
Eg
Abc123 Peter Admin Dan
Abc123 John User Marc
Abc123 Derek Admin Abby
Abc123 Dan User null
I am trying to come up with the query to see who are the Member with Admin access in a spefic ID and for the members with Admin access if their BossName is part of the same ID as a user or not.
For eg in the above as you see there are 2 members who are the Admin Peter and Derek. and Peter Boss Dan is a user as well in the same ID.
So in this case the query should return below exception report
Id : Abc123 Member : Derek BossNAMe : Abby
Any suggestions.
Thanks-