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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:22:00+00:00 2026-06-09T07:22:00+00:00

I have two tables in a firebird 1.5 database, the tables are client and

  • 0

I have two tables in a firebird 1.5 database, the tables are client and notes, in the notes table there can be multiple records for each corresponding record in Client table, and sometimes none.
The tables are structured like

Client

Client_id   name
----------------- 
1           Sam 
2           Lee
3           Steve 
4           Linda 
5           Sue 
6           Jill 
7           Jack 

Notes

Notes_id   client_id   Note 
------------------------------ 
1          1           New
2          1           do not send
3          2           old
4          2           likes
5          4           do not send
6          5           new
7          5           Cats and Dogs
8          5           drives

I would like to run a select statement that would only return records from the Client table where there is no note named ‘do not send’ linked to the client in the notes table. So with the above examples the select statement would only return the following records from the client table.

Client_id   name
----------------- 
2           Lee
3           Steve 
5           Sue 
6           Jill 
7           Jack 

Is this possible? Any assistance with this would be appreciated.

Regards Alan

  • 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-09T07:22:01+00:00Added an answer on June 9, 2026 at 7:22 am

    Below are three queries that will do the task:

    SELECT
      c.*
    FROM
      client c 
    WHERE
      NOT EXISTS(SELECT * FROM notes n WHERE n.client_id = c.client_id 
        AND n.note = 'do not send')
    

    or

    SELECT
      c.*, n.client_id
    FROM
      client.c LEFT JOIN
        (SELECT client_id FROM notes WHERE note = 'do not send') n
      ON c.client_id = n.client_id
    WHERE
      n.client_id IS NULL
    

    or

    SELECT
      c.*
    FROM
      client c 
    WHERE
      NOT c.client_id IN (SELECT client_id FROM notes n 
        WHERE n.note = 'do not send')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables like Parent-Child. In Parent table, there are 7211 records. In
I have two tables, orders and old_orders. Each table has some similar fields and
I have two tables in my database. A person and a coach table. The
I have two tables, namely Price List (Table A) and Order Record (Table B)
I have two tables: table a ida valuea 1 a 2 b 3 c
I have two tables one with ID and NAME table 1 ID | NAME
I have two tables user table user_id | name | 1 | peter |
I have two tables, a user table and a application table: User id username
I have two tables in my MySQL database, one is a library of all
I have two tables connected with one to many relationship. Parent Table is a

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.