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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:08:04+00:00 2026-06-10T19:08:04+00:00

I have two linked tables: Case_Table: Case_Clients Client_ID (int, identity) Case_ID (int, identity) —

  • 0

I have two linked tables:

    Case_Table:                 Case_Clients
                                Client_ID (int, identity)
    Case_ID (int, identity) --- Case_ID (int)
    Conference_ID (int)         Relationship_ID (int)
    Other Stuff

Below is the SQL statement to list all records that has a head of household:

    SELECT Case_Table.Case_ID, 
           Case_Table.Conference_ID, 
           Case_Clients.Client_ID, 
           Case_Clients.Relationship_ID
    FROM   Case_Clients INNER JOIN
           Case_Table ON Case_Clients.Case_ID = Case_Table.Case_ID
    WHERE  (Case_Clients.Relationship_ID = 1)

The company requires that each case has a head of household, and we have taken steps to enforce this, but we still have the existing cases that do not have a head of household. I know that I have over 100 cases without a Head of Household (Relationship_ID = 1).

Moving on… what I am trying to do is to list the Conference_ID and Case_ID for each record in Case_Table that does not have a head of household in Case_Clients.

  • 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-10T19:08:05+00:00Added an answer on June 10, 2026 at 7:08 pm

    You can use NOT IN to retrieve any records in CaseTable that don’t have records in Case_Clients where RelationshipID = 1 (assuming that is the head-of-household record).

    SELECT Case_Table.Case_ID, Case_Table.ConferenceID
    FROM Case_Table
    WHERE CaseTable.Case_ID NOT IN (
        SELECT Case_ID 
        FROM Case_Clients 
        WHERE RelationshipID = 1
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables, one linked to the Primary Key of the other. At
In a MySQL database I have two tables linked in a join. One table
I have two fields in separate linked tables with the same data, but different
i have two tables products and reviews each product has several reviews linked by
Suppose I have two tables that are linked (one has a foreign key to
Lets say I have two tables - Cat and Cat owner that are linked
I have two tables linked by an ID column. Let's call them Table A
I have two tables, timetable and lesson_booking these are linked via timetable_id . timetable
I have two tables in the DB FuelStation (fuel_station_id: int (PK), fuel_station_name: varchar, fuel_brand_id:
I have two tables linked together through the 3rd table threads: id, name tags:

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.