Database: customers_and_invoices
Question: Return the order ids and details for orderes with two invoices.
SQL: select t2.order_id ,  t2.order_details from invoices as t1 join orders as t2 on t1.order_id  =  t2.order_id group by t2.order_id having count(*)  =  2