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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:15:04+00:00 2026-05-25T13:15:04+00:00

What I am trying to do is that I have two different tables and

  • 0

What I am trying to do is that I have two different tables and joining them by a column. The result im looking for is retrieving all of the records that are NOT in the in the first table. I cant remember the sytax to do this. Here is what I have so far:

        SELECT A.ICAO, A.IATA, A.AIRPORT_NAME, A.CITY, A.COUNTRY, A.REVISED_DATE 
        FROM AIRPORT_CHECKLIST A, AIRPORT_CHECKLIST_SELECTED B
        WHERE A.COMPANY = 'TOM'
        AND A.ICAO <> B.ICAO
  • 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-25T13:15:04+00:00Added an answer on May 25, 2026 at 1:15 pm

    To find all records without a match, do a left inner join (which returns one record for each record in the left-hand table, even if it doesn’t have a match in the right-hand table) and check for null values in the right-hand table’s fields. Assuming you’re looking for airports in the checklist for 'TOM' that are not selected:

    SELECT A.ICAO, A.IATA, A.AIRPORT_NAME, A.CITY, A.COUNTRY, A.REVISED_DATE
    FROM AIRPORT_CHECKLIST A LEFT JOIN AIRPORT_CHECKLIST_SELECTED B 
    ON A.ICAO = B.ICAO
    WHERE A.COMPANY = 'TOM' AND B.ICAO IS NULL;
    

    The test B.ICAO IS NULL selects only those rows that have been inserted by the inner join to represent A rows with no matching B row

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

Sidebar

Related Questions

I have two tables that were built for two disparate systems. I have records
I'm trying to use natural join to join two tables in mySQL that have
In C (NOT C++), I am trying to create two string tables that contain
I'm trying to create an expression tree dynamicly. Let asume that I have two
I have two PNGs that I am trying to combine into a PDF using
I have two arrays of data that I'm trying to amalgamate. One contains actual
I have a partial view that is shared between two controllers and I'm trying
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
I'm trying to find all data items that have long/lats that are contained by
i am trying to execute the records that have TotalTime null value from the

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.