myatia
Programmer
- Nov 21, 2002
- 232
Hi,
I have three tables, Instructor, InstructorZipCode, and InstructorClassification, that I want to join together. All instructors have a zip code, but some don't have a classification. I want to get all the instructors within n miles of a zip code, regardless of whether they have a classification. I have the math worked out to do that, I just need help on the join. I've tried the following
but that doesn't work (I get an error in the from clause). I think I have the right idea; I'm just not sure about the syntax (then again, maybe not . If anyone could offer me some pointers, I'd really appreciate it. Thanks,
Misty
I have three tables, Instructor, InstructorZipCode, and InstructorClassification, that I want to join together. All instructors have a zip code, but some don't have a classification. I want to get all the instructors within n miles of a zip code, regardless of whether they have a classification. I have the math worked out to do that, I just need help on the join. I've tried the following
Code:
SELECT *
FROM (SELECT * FROM Instructor, InstructorZipCode WHERE (math crap) AS InstructorTable)
LEFT OUTER JOIN Classification
WHERE InstructorTable.ClassificationID = Classification.ClassificationID
but that doesn't work (I get an error in the from clause). I think I have the right idea; I'm just not sure about the syntax (then again, maybe not . If anyone could offer me some pointers, I'd really appreciate it. Thanks,
Misty