The TABLE () function passes the type of a nested table to a relational result set. This allows us to query a previously populated collection in SQL.
A CAST function call (MULTISET ()) converts a relational result set into a collection type. This is primarily used when pasting into a table with a column defined as a nested table.
Several sites use object-relational functions in their persistent data structures, so the second use is quite rare. But the ability to use collections in embedded SQL operations is a very cool technique and is widely used in PL / SQL.
source share