Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8235883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:58:00+00:00 2026-06-07T18:58:00+00:00

I have a table with columns Name, EmailId, Process, Status like below. **Input** Name

  • 0

I have a table with columns Name, EmailId, Process, Status like below.

**Input**

   Name       EmailId                Process      Status    
   apple1     apple@fruits.com       process1     Closed
   apple2     apple@fruits.com       process2     In Progress
   apple3     apple@fruits.com       process3     Complete      
   orange1    orange@fruits.com      process1     Closed
   orange2    orange@fruits.com      process2     Closed
   oran       orange@fruits.com      process3     Closed
   mango1     mango@fruits.com       process1     To Start

Now what I would like to have is the emailId and Status of people whose Status are closed for all the Process – Process1, process2, process 3

**Output**

EmailId              Status    
orange@fruits.com    Closed

Since all the process for orange have been closed I have the above row
Similarly I would like to have all the email ids of the table whose process are closed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:58:02+00:00Added an answer on June 7, 2026 at 6:58 pm

    Another way:

    SELECT 
        EmailId
    FROM
        tableX AS t
    GROUP BY 
        EmailId
    HAVING
        COUNT( CASE WHEN Status <> 'Closed'
                 THEN 1 
               END
             ) = 0 ;
    

    or:

    SELECT 
        t.EmailId
    FROM
        ( SELECT DISTINCT EmailId
          FROM tableX 
        ) AS t
      LEFT JOIN
        tableX AS tt
          ON  tt.EmailId = t.EmailId
          AND tt.Status <> 'Closed'
    WHERE
        tt.EmailId IS NULL ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of my database table columns have name like 'name@from' how can i write
Need some help. I have a table with some columns..like name , phone etc...
I have a table called Employee (with columns like name, ssn, age , etc..)
I have a DataGrid table with columns name , phone . In column name
I have a table: event_list with two columns: name as var(80) and default as
I have a table that stores email in 3 diffrent columns name host and
I have a database with many tables and one particular table has columns: name
I have a Name table with the columns NameID Name TypeID With the following
I have a table with columns 'id', 'name', 'value', 'uniqueConst' in both databases. Now
I have a table with three filled columns named Name, City and Occupation. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.