Hi All;
I need to shows clients who
- Are on NEA programme
- Are on BSUS programme
- Have an NEA business start output
- DO not have a BSUS business start
below is my query ion
but this query doesnt sattisfy the condition
- Have an NEA business start output
- DO not have a BSUS business start
Any help on this is much appreciated
Thanks
Pradnya
SELECT t1.new_applicantidname as ClientName, t1.new_programmeappliedforidname as BSUSProgramme,
t2.new_programmeappliedforidname as NEAProgramme
FROM FilteredNew_applicationform t1
inner join FilteredNew_applicationform t2 ON t2.new_applicantid=t1.new_applicantid
inner join FilteredNew_evidence as a1 on (t1.new_applicationformid = a1.new_relatedapplicationid)
inner join FilteredNew_evidence as a2 on (t2.new_applicationformid = a2.new_relatedapplicationid)
WHERE t1.[new_programmeappliedforidname] like 'BSUS%'
and a1.new_evidenceforoutputidname not in ('Business Starts')
and t2.new_programmeappliedforidname = 'New Enterprise Allowance'
and a2.new_evidenceforoutputidname = 'Business Starts'
order by t1.new_applicantidnamePradnya07