Write SQL query to solve given problem: How many percent of customers were inactive?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(IIF(active = 0, 1, 0)) AS REAL) * 100 / COUNT(customer_id) FROM customer