|
The parent table has 50 fields, and the child table has 100 fields. Now it needs to be grouped and displayed by the "number" of the parent table, but it also needs to display a piece of corresponding information in the child table, that is, what is needed is:
select parent table.*, child table.* from parent table left join child table group by parent table. No.
As a result, because group by needs an aggregate function, the above writing method cannot be passed. Now I don’t want to be backward compatible, and I don’t want to write all the fields with aggregate functions. Is there a better way? ? ? |
|