On 3 Dec 2009, at 5:30pm, Yuzem wrote:

> SimonDavies wrote:
>> 
>> SELECT a.id,a.title,a.rating,tag.tag FROM (movies natural left join
>> user) as a natural left join tag;
>> 
> It doesn't work, it says: no such column a.id
> If I use movies.id I have the same problem as before: movies with no rating
> don't get any tags.

You need to read up on the different types of JOIN that SQL allows.  No reason 
to use a LEFT JOIN if you want a RIGHT JOIN, an INNER JOIN or a CROSS JOIN.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to