python - django subquery without using in -
i need know how write django subquery.
i need equal django query below mysql query.
select main_query.response, count(main_query.response) total table1 main_query, (select max(date_time) "created_at" table1 group number having max(date_time) = max(date_time) ) sub_query sub_query.date_time=main_query.date_time group main_query.response
kindly let me know..................
Comments
Post a Comment