Hi, I am facing a challenge please help me.
[image: Query.PNG] output: [image: output.PNG] Here one env_name can have many comp name and one env with one comp_name there will be many deploy_details which is in green colour (latest). in deploy_detail if there is two deploy in one component we will take the latest deploy_date. Now please can anyone help me in converting this query into Django ORM and the models Thanks in advance -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/db10af4c-ef4c-47cb-82fd-a442d3b381ab%40googlegroups.com.

