Find me ids of customers who have order status "On Road".
select t1.customer_id from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.order_status = "On Road"
Now find me ids of customers who have order status "Shipped".
select t1.customer_id from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.order_status = "Shipped"
Now show me ids of customers with both of those order statuses.
select t1.customer_id from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.order_status = "On Road" intersect select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.order_status = "Shipped"