|
hi guys,
i have an asp.net site which i am building in web matrix.
it hooks up to an MS Access backend.
i need to add some criteria to my select statment to firstly ignore records where AWARD is blank or "999"
i will then will need to repeat the whole thing to just select blanks and "999"s.
so my statment is as follows:
Dim sqlCmd2 = "SELECT ur.student_id, ur.unit_id, ur.award, aw.title, un.title, re.title, ur.year, ur.mark, un.cats, ur.field8, ur.prog_id " _ & "
FROM ((UNITREG ur LEFT JOIN AWARD aw ON ur.award = aw.id) " _ & "LEFT JOIN UNIT un ON ur.unit_id = un.id) " _ & "LEFT JOIN RESULT re ON ur.grade = re.id " _ & "
WHERE (ur.student_id = '"& id &"') AND award >= '' " _ & "
ORDER BY aw.title, un.title"
what do i need to add to say WHERE "AWARD" DoesNotEqual blank or "999"
and then in another statement WHERE "AWARD" = blank or "999"
all help is much appriciated!
no time wasters please!
__________________
regards,
Pauly.
The true sign of intelligence is not knowledge but imagination. (Albert Einstein)
Be who you are and say what you feel,
because those who mind don't matter and those who matter don't mind. (Dr. Seuss)
|