google "django send raw sql"

Johnf

On 3/21/20 8:52 AM, 'rossm6' via Django users wrote:
Can the django ORM do something like this?

|SELECT *FROM "products_maxbid"asm JOIN "products_auction"asa on m.auction_id =a.uuid WHERE m.uuid in(SELECT m.uuid FROM "products_maxbid"asm INNER JOIN (SELECT auction_id,Max(value)asvalueFROM "products_maxbid"WHERE user_id ='2'GROUP BY auction_id )n on m.auction_id =n.auction_id andm.value=n.valueandm.user_id ='2')ORDER BY a.square_id|
SO question 
-https://stackoverflow.com/questions/60789513/django-query-for-max-value-for-column-which-includes-foreign-key-table-also-in-r
--
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com <mailto:django-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJXS7_MePOU_LYhVWLKsG0gz4XyVdDS8w4LhpFyYCQpQVUGkOw%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAJXS7_MePOU_LYhVWLKsG0gz4XyVdDS8w4LhpFyYCQpQVUGkOw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe748de5-71c8-0c42-dd78-5a1f1b29dfe8%40gmail.com.

Reply via email to