#33102: Nested natural join query
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  ManiMozaffar                       |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Database   |        Version:  3.2
  layer (models, ORM)                |       Keywords:  natural join
               Severity:  Normal     |  manytomany
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Hello,

 Imagine this case:
 Model A
 ——> Model B(many to many to A)
 ————-> Model C (many to many to B)
 ————-——->Model D (many to many to C)

 To get a query set of objects D which are connected to all A, we can do a
 query like this:
 Select * from A natural join B natural join C natural join D

 Such a query does not exist as long as I have researched, so I think
 Django ORM should be modified.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33102>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.886995245b615eb7c7838f8e31334222%40djangoproject.com.

Reply via email to