employees table with columns:
id (pk) BIGINT, name TEXT, email TEXT, work_locations BIGINT[].
work_locations columns contains the location table ids.
location table with columns:
id (pk) BIGINT, lat DECIMAL(12,9), long DECIMAL(12,9).
I want a result like
id name email lat, long
1 name [email protected] 23.345 54.3678
I am not able to join two table on work_locations and ids.
How to join these two tables?