Hello. I have a model named MyModel and it has its own table named my_model (as an example).
Is it possible to write ORM-way request to be same as this SQL: SELECT mo.* FROM (SELECT mi.* FROM my_model mi) AS mo WHERE mi.a=mo.a AND mi.b=mo.b; There is also an agregation+group by statements in subselect, but let's assume that we don't have them. Thanks
signature.asc
Description: OpenPGP digital signature