How can I achieve this table?
Here are the tables
And here is the query that I have come-up but I'm still having some error
SELECT DISTINCT Table1.ID as T1_ID,
(SELECT *
from Table1.Location
where Table1.ID = Table1.ID) as T1_Location,
Table2.Location as T2_Location
FROM Table1
INNER JOIN Table2 ON Table1.ID = Table2 = ID




Table1.location? 3 strings concatenated? An array like structure (if the dB supports it)?GROUP BY, but it will result in the second column being a concatenated string with the locations from Table1.