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 7519737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:57:09+00:00 2026-05-30T01:57:09+00:00

EDIT: What I need to show are those emails from the list in the

  • 0

EDIT: What I need to show are those emails from the list in the SQL query that DO NOT appear in tresp.

I have the following code:

SELECT * FROM tresp WHERE email IN ('[email addy here]','[email addy here]','
[email addy here]','[email addy here]','[email addy here]')

This may sound odd but want I want to do is actually show the email addresses that are NOT in the tresp – is that possible?

Cheers,

H.

  • 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-05-30T01:57:09+00:00Added an answer on May 30, 2026 at 1:57 am

    Tricky question, this solution isn’t very elegant but it works;

    SELECT * FROM (
      SELECT 'email1' AS email UNION 
      SELECT 'email2'          UNION 
      SELECT 'email3'          UNION 
      SELECT 'email4'          UNION 
      SELECT 'email5' 
    ) AS a WHERE a.email NOT IN (SELECT email FROM tresp);
    

    If you run into the same charset problems I had, create the table with default charset utf-8.

    Edit: Added an AS since older MySQL seems to have trouble without it.

    Demo at SQLFiddle.

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

Sidebar

Related Questions

I need to edit XML files on a small Linux box that we have
FULL EDIT: I urgently need to access a Microsoft SQL Server and read compressed
I select data from several tables. Then i need to edit the data returned
I need the form that will edit the array of entities and their related
I need to be able to call data from a different model - not
I have a tableview where i need to show around 10,000 rows (data stored
I have a few constants that I'll need to define for my application, for
Is there a way with dataTables to have it not show the sort icons
basically I have a list of posts, and I am wondering if I need
I need to store user entered changes to a particular table, but not show

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.