Back to tasksGet help with live coding in real time with Sobes Copilot
Intern — Middle
29
Список покупателей и содержимое их корзин
Companies where asked:
Lamoda Tech
Task condition
Необходимо вывести построчно информацию о каждом клиенте (идентификатор и электронная почта) вместе со всеми товарами, находящимися в его корзине (артикул и количество).
-- Table "public.carts"
-- Column | Type | Modifiers
-- -----------|-----------------------------|-----------------------------
-- sku | bigint | not null
-- country | country_enum | not null
-- customer_id| bigint |
-- amount | bigint | not null
-- updated_at | timestamp without time zone| default now()
-- Table "public.customer"
-- Column | Type | Modifiers
-- -------|-------|----------------
-- id | bigint| not null
-- email | text | not null