T
Tony
Hi Group,
I've been working at this for a couple of hours and I'm
getting nowhere - need some help.
I am trying to remove records which match 3 critereon. I
can get it to work for the first criteria using <> but I
cannot get it to work for the required 3 criteria, which
is...
Programme = 002
Priority = 001
Measure = 007
Programme = 002
Priority = 004
Measure = 003
Programme = 002
Priority = 006
Measure = 002
Can someone help
Tony
Here is the basic SQL for the first criterion
SELECT DISTINCTROW tblApplication.Programme,
tblProgramme.OperationalProgrammeName,
tblPriority.PriorityName, tblApplication.Priority,
tblApplication.Measure
FROM (tblApplication LEFT JOIN tblProgramme ON
tblApplication.Programme =
tblProgramme.OperationalProgrammeCode) LEFT JOIN
tblPriority ON (tblApplication.Programme =
tblPriority.OperationalProgrammeCode) AND
(tblApplication.Priority = tblPriority.PriorityCode)
WHERE (((tblApplication.Programme)<>"002") AND
((tblApplication.Priority)<>"001") AND
((tblApplication.Measure)<>"007"));
I've been working at this for a couple of hours and I'm
getting nowhere - need some help.
I am trying to remove records which match 3 critereon. I
can get it to work for the first criteria using <> but I
cannot get it to work for the required 3 criteria, which
is...
Programme = 002
Priority = 001
Measure = 007
Programme = 002
Priority = 004
Measure = 003
Programme = 002
Priority = 006
Measure = 002
Can someone help
Tony
Here is the basic SQL for the first criterion
SELECT DISTINCTROW tblApplication.Programme,
tblProgramme.OperationalProgrammeName,
tblPriority.PriorityName, tblApplication.Priority,
tblApplication.Measure
FROM (tblApplication LEFT JOIN tblProgramme ON
tblApplication.Programme =
tblProgramme.OperationalProgrammeCode) LEFT JOIN
tblPriority ON (tblApplication.Programme =
tblPriority.OperationalProgrammeCode) AND
(tblApplication.Priority = tblPriority.PriorityCode)
WHERE (((tblApplication.Programme)<>"002") AND
((tblApplication.Priority)<>"001") AND
((tblApplication.Measure)<>"007"));