4 ms·
Aren't SQL subqueries pretty much standard across all databases anyways? Why would writing them in Django's ORM be more compatible?
by mozumder 10y ago
Aren't SQL subqueries pretty much standard across all databases anyways? Why would writing them in Django's ORM be more compatible?
- jsmeaton 10y agoField names, table names, quotes or not - a few examples of things that can differ. The syntax of subqueries themselves are standard AFAIK. Building subqueries inside Django gives the rest of Django access to them for things like aggregation or filters.