Am in need of some guidance on how to write a query.
There are the following tables:
tblWorkGroupProgramme
- WorkGroupID
- Programme ID
tblWorkGroup
- WorkGroupID
- WorkGroupName
tblUser
- UserID
- WorkgroupID
tblUserProgramme
- UserID
- ProgrammeID
The requirement is to find all those user id whose Workgroup name not like ‘%Insight%’ but ProgrammeID equals 59 as ProgrammeID 59 has to be allotted only to those users who have their Workgroup as ‘%Insight%’
Have been trying with all possible joins and sub queries, but couldnt get it. SO, any help, in the right direction would be of great use