how do i extract only the records with all email entries missing

Soufiane Benounssi

I have a question so I have this table:

| Manager_Name | Email_Address |
| ------------ | ------------- |
| person A     |[email protected]|
| person A     |Null|
| person A     |Null|
| person A     |[email protected]|
| person A     |[email protected]|
| person B     |Null|
| person B     |Null|
| person B     |Null|
| person B     |Null|
| person B     |Null|
| person C     |[email protected]|
| person C     |[email protected]|
| person C     |[email protected]|
| person C     |[email protected]|
| person C     |[email protected]|
| person D     |Null|
| person D     |Null|
| person D     |Null|
| person D     |Null|
| person D     |Null|

My question is how do I extract only the the managers that have all the 5 email addresses missing like person B and person D, in the original table I have a lot of them I want to get only them with all 5 addresses missing.

forpas

You can group by Manager_Name and set the condition in the HAVING clause:

SELECT Manager_Name
FROM tablename
GROUP BY Manager_Name
HAVING MAX(Email_Address) IS NULL;

See the demo.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

How do I check for all entries that has a certain bit/flag/mask in them

How can I write a SQL query left joining 2 tables that lists all entries on the left table, but only once?

How do I extract all digits from a string in Python even if the digits are not contiguous?

How can I extract images from a raw email?

how do i send an email through joomla

How do I get an Option<T> instead of an Option<Vec<T>> from a Diesel query which only returns 1 or 0 records?

How do I make form entries mirror eachother?

How do I extract a long listing field?

Select only the entries common to all rows

How do I only use keyboard to control my computer for all everyday usages?

How do I apply filter through all paginated items and only display the filtered items?

How do you extract only the uppercase portions of a string in Stata?

How to extract only the image path from the array I'm getting?

How could I extract all the numbers from a data frame into a vector?

How do I add a count of related records in CakePhp index

How do I select from Bulk Collected Table of Records Type

How do I delete records older than 90 days in QuestDB

How can I get an SQL query to display only entries for the last week?

How do i send email from Azure function app

How do I email out ApostropheCMS contact form submissions?

How do I get unique email address and retain other fields

How do i read only value attr?

How do I log into bash shell only?

How can I capture all entries of specific word, but not being a part of another known words?

How do I replace missing values based on median of another value?

How do I create a respond link in an email sent via email form?

How do I eliminate all these if-else

How do I rename all files to lowercase?

How do I stop all processes in a chroot?

TOP 一覧

  1. 1

    モーダルダイアログを自動的に閉じる-サーバーコードが完了したら、Googleスプレッドシートのダイアログを閉じます

  2. 2

    セレンのモデルダイアログからテキストを抽出するにはどうすればよいですか?

  3. 3

    CSSのみを使用して三角形のアニメーションを作成する方法

  4. 4

    ドロップダウンリストで選択したアイテムのQComboBoxスタイル

  5. 5

    ZScalerと証明書の問題により、Dockerを使用できません

  6. 6

    PyCharmリモートインタープリターはプロジェクトタブにサイトパッケージのコンテンツを表示しません

  7. 7

    Windows 10でのUSB入力デバイスの挿入/取り外しの検出

  8. 8

    Excel - count multiple words per cell in a range of cells

  9. 9

    PictureBoxで画像のブレンドを無効にする

  10. 10

    Windows 10 Pro 1709を1803、1809、または1903に更新しますか?

  11. 11

    スタート画面にシャットダウンタイルを追加するにはどうすればよいですか?

  12. 12

    Python / SciPyのピーク検出アルゴリズム

  13. 13

    Luaの文字列から特定の特殊文字を削除するにはどうすればよいですか?

  14. 14

    Pythonを使用して、リストからデータを読み取り、特定の値をElasticsearchにインデックス付けするにはどうすればよいですか?

  15. 15

    LinuxでPySide2(Qt for Python)をインストールするQt Designerはどこにありますか?

  16. 16

    goormIDEは、ターミナルがロードするデフォルトプロジェクトを変更します

  17. 17

    QGISとPostGIS(マップポイント(米国の地図上にraduisを使用した緯度と経度)

  18. 18

    MLでのデータ前処理の背後にある直感

  19. 19

    ターミナルから「入力ソースの変更」ショートカットを設定する

  20. 20

    パンダは異なる名前の列に追加します

  21. 21

    同じクラスの異なるバージョンを使用したクラスローディング:java.lang.LinkageError:名前の重複クラス定義を試行しました

ホットタグ

アーカイブ