Thursday, October 6, 2011

How to do equivalent of LEFT JOIN ON in Django (returning all Left rows, when Right item may not exist)

Hi guys, can anyone please give me an example of how to do equivalent
of a LEFT JOIN ON in Django?? I am trying to return every row from one
table on the left, with any matches in a foreign table on the right
(there will be only one or NULL match possible). The issue I'm having
is showing left table data when there is a NULL on the right. Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment