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

  • SEARCH
  • Home
  • 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 8863611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:01:25+00:00 2026-06-14T16:01:25+00:00

A little rusty, but I would like to return all the Email in the

  • 0

A little rusty, but I would like to return all the Email in the Customers table which are not found in the MailingList table, So I’m using this query, but its taking a bit longer than expected. Is there any other type of logic I can use to make it go faster (Instead of ie M.Email <> C.Email ?

 SELECT DISTINCT C.Email FROM CUSTOMERS C
 INNER JOIN MailingList M ON M.Email <> C.Email
 GROUP BY C.Email
  • 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-14T16:01:26+00:00Added an answer on June 14, 2026 at 4:01 pm

    You could do something like this:

    SELECT DISTINCT C.Email FROM CUSTOMERS C
    LEFT OUTER JOIN MailingList M ON M.Email = C.Email
    WHERE M.Email is null
    

    I don’t think the grouping is necessary for either query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My php is a little rusty but this is boggling my mind right now.
I am a little rusty with QT but I've had to use it for
a little rusty from my Scheme days, I'd like to take 2 lists: one
I'm a little (more like a very) rusty on my jquery knowledge. for some
My C++ is a little rusty but I have made a program that reverses
My C++ is little rusty. Can anyone see why I am seeing not a
My C++ is a little rusty having worked in Java and C# for the
Firstly, my SQL knowledge is little rusty. I am trying to generate a report
I'm coding in vb.net, and I haven't in forever so I'm a little rusty
Little Background: I have csv file which has lots of rows and each row

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.