Database: vehicle_rent
Question: What are the names of customers who have two or more records of rental history?
SQL:
SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.id GROUP BY T2.id HAVING count(*)  >=  2