Postgresql – How to read first N of values from Postgres array
I have ARRAY_AGG( distinct CAST (asset_group_id AS text)) which returns array of hundreds of elements but I want only first 100 elements. I didn't find any such function available in postgres array documentation. How can I achieve it in the…