假设您有一个名为"发票"的表,列"发票_id", "客户_id", "发票_日期"和"金额".写一个SQL查询,找到最高的平均发票金额的前5名客户,不包括任何购买次数低于10次的客户.
You can use the following SQL query to get the top 5 customers with the highest average invoice amount:

```
SELECT customer_id, AVG(amount) AS avg_amount
FROM invoices
GROUP BY customer_id
HAVING COUNT(invoice_id) >= 10
ORDER BY avg_amount DESC
LIMIT 5;
```

This query first groups the invoices by customer, calculates the average amount for each customer, and then only includes customers who have made 10 or more purchases using the `HAVING` clause. The results are sorted in descending order by average amount, and only the top 5 results are returned using the `LIMIT` clause.