Вывести email и элементы корзины
Условие задачи
Имеются таблицы public.customer и public.carts. Написать SQL-запрос, который выведет всех пользователей с колонками: id, email, и списком всех элементов их корзины (sku) в одном списке.
sqlTable "public.carts"
+-------------+-----------------------------+-------------------------+
| Column | Type | Modifiers |
+-------------+-----------------------------+-------------------------+
| sku | bigint | not null |
| country | country_enum | not null |
| customer_id | bigint | not null |
| amount | bigint | not null |
| updated_at | timestamp without time zone | default now() not null |
+-------------+-----------------------------+-------------------------+
Table "public.customer"
+--------+------+----------+
| Column | Type | Modifiers |
+--------+------+----------+
| id | bigint | not null |
| email | text | not null |
+--------+--------+----------+