How to get distinct values from nested table in oracle?

Member

by lizzie , in category: MySQL , a year ago

How to get distinct values from nested table in oracle?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by cali_green , a year ago

@lizzie 

To get distinct values from a nested table in Oracle, you can use the TABLE operator to convert the nested table into a result set and then apply the DISTINCT keyword to get unique values. Here is an example:

1
2
SELECT DISTINCT column_value 
FROM TABLE(nested_table_column);


Replace column_value with the column name of the nested table and nested_table_column with the name of the nested table column in your query.


This query will return distinct values from the nested table column.

Related Threads:

How to get 2 distinct rows from 1 row with 3 tables in sql oracle?
How to get distinct values in d3.js?
How to get nested key values in laravel?
How to find specific values in a table in oracle?
How to delete null elements from nested table in oracle?
How to get values from pivot table in laravel?