MULTISET is the SQL native way of doing this but it's only implemented in Oracle, and most people have never heard of it
jOOQ emulates this feature for arbitrary databases and has the best explanatory article on the web about MULTISET imo
https://www.jooq.org/doc/latest/manual/sql-building/column-e...