A question regarding exactly what you are looking for, because what you described in your question seems different than whats in your query.
Quote:
|
[i]I want to return all active courses and all courses whose field code begins with a 10
|
This is saying the record must have LEDef_ActiveInd = 1 or LEDef_Cd LIKE '10-%', either one of these will satisfy the conditions for your result set.
What you have coded says a record must have both LEDef_ActiveInd = 1 and LEDef_Cd LIKE '10-%' to be included. Having one or the other is not enough.
If you want either condition to be enough try
SELECT LEDef_PK FROM LEDef WHERE LEDef_ActiveInd = 1 OR LEDef_Cd LIKE '10-%'