Hi all,
I am finding that what I previously thought of as being a basic but adequate knowledge of SQL is turning out to be below par :eek:
As such I'm looking for some advice first of all specific and then general. Appreciate as much help as possible.
1st I am using natural joins in SQL statements between various tables and I normally construct them like this:
SELECT candidate.field1, candidate.field2, location.location
WHERE candidate.locationID = location.locationID....;
.....etc.
Now my problem is that when I am trying to get result records and there is a NULL value for say candidate.locationID in a particular record, then it won't give me any output for that record only bringing up records where there is a value for this ID present.
Is there a way round this? it seems that it is requiring the presence of a value in any and all fields specified in natural joins.
More generally I notice alot of pretty complicated SQL on the board LEFT JOINS & INSIDE-OUT JOINS (🙂 ) etc. which I would like to know more about - don't really want to splash out on a book are there any recommended SQL sites (apart from mySQL.com) that anyone can point me towards.
MUCH APPRECIATED!!!!
Dan.