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.
email、firstname、surnameの列を持つ顧客注文のテーブルがあります。購入したすべての人にメールを送りたいです。私はそれを使用すると思った:
SELECT DISTINCT email, firstname, surname FROM ...
すべての一意の電子メールアドレスと名と名前を返すように機能します。
SELECT contact_email, firstname, surname FROM customer_details GROUP BY contact_email
ハハ、代わりにGROUP BYを使用しました:)