I would like to get help on how to use Django DB API to accomplish the
equivalent of the following SQL statement:

select a from X, Y where X.f = Y.id and Y.c=123;

X has field a, f and Y has field id, c.
f is foreign key of Y and Y's primary key is id.

Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to