SELECT id, u.name, password, email, mail, c.user_id FROM user_view u LEFT JOIN customer_view c ON u.id = c.user_id