Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
注文テーブルから顧客を照会したいのですが、2回以上の顧客注文のみが適格です。これらの顧客注文を 2 回以上フィルターするには、どの句またはフィルターを使用すればよいですか? SQLite を使用しています。
よろしくトム
SELECT customer_id FROM orders GROUP BY customer_id HAVING count(*) > 2;
将来的には、テーブル定義などの詳細情報を提供してください。