Suppose that I have a table with the following two columns:
create table contacts (
first_name varchar[],
last_name varchar[]
);
And I have the following two rows:
INSERT INTO contacts (first_name, last_name)
VALUES (ARRAY['Samin'] , Array['Var']),
(ARRAY['Sara', 'pooya'] , Array['Rad', 'Mohammadi']);
select * from contacts;
I want to do a query that results in the following output:
#row1: {Samin-Var}
#row2: {Sara-Rad, pooya-Mohammadi}