I have a MySQL database that I imported to Google Data Studio, and I have made the following query to get the data from multiple tables:
SELECT sw.waybill_number, sw.order_id as sworder_id, sw.status, sw.cod, sw.id AS sw_id, sw.created_at as sw_ca, c.shipping_price, c.id as c_id, oi.id as oi_id, oi.created_at as oi_ca, oi.order_id as oiorder_id, oi.product_id as oip_id, p.created_at as p_ca, p.id as p_id, p.name
FROM shipping_waybills sw
JOIN cities c
ON sw.state = c.name_en
LEFT JOIN order_items oi
ON sw.order_id = oi.order_id
LEFT JOIN products p
ON oi.product_id = p.id;
However, there are multiple values related to the column i want (sw.waybill_number), but I only want one value, it doesn't matter which one.
How can I do that??