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

The Archive Base Latest Questions

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

Imagine two tables in the same Access database; Transaction – Date – Time –

  • 0

Imagine two tables in the same Access database;

Transaction
 - Date
 - Time
 - TransactionNumber
 - UniqueID
 - Exception (boolean)

(TransactionNumber is sequential integer for records of the same day, and then starts again from 0 each day. Key field is UniqueID)

Exceptions
 - ExceptionNumber
 - Date
 - Time
 - TransactionNumber
 - ExceptionReason

(ExceptionNumber is sequential integer for records of the same day, and then starts again from 0. TransactionNumber is the same value from Transactions where Date is the same in both tables)

Where Transaction.Exception is TRUE, a record relating to that Transaction will also appear in Exceptions.

I want to output ALL records from Transaction, and where Transaction.Exception happens to be TRUE for a record, then I want a column which shows the Exception.ExceptionReason. For the other records, it should be blank.

I’ve no idea how this is possible. If you joint the two tables via the Date and TransactionNumber fields, you’ll only see records where Transaction.Exception = TRUE.

  • 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-09T12:17:07+00:00Added an answer on June 9, 2026 at 12:17 pm

    It sounds to me like a LEFT JOIN could accomplish what you want.

    SELECT
        t.[Date],
        t.[Time],
        t.TransactionNumber,
        t.[Exception],
        e.ExceptionReason
    FROM
        [Transaction] AS t
        LEFT JOIN Exceptions AS e
        ON
            t.[Date] = e.[Date]
            AND t.TransactionNumber = e.TransactionNumber
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine we have two tables in the database, user (FK id_role) and role (PK
Imagine two simple java applications. Both of them are implementing the same JAR file
I'm going crazy with this and would greatly appreciate some help. Imagine two tables
Imagine that we have two tables as follows: Trades ( TradeRef INT NOT NULL,
Example: I have two tables in my database called classA and classB , and
Imagine I have two tables in a DB like so: products: product_id name ----------------
So imagine you have the following two tables: CREATE movies ( id int, name
I have two services: TeacherService and PupilSerivce which are sharing the same database. The
Imagine two tables (A and B): A B 1 2 2 3 6 5
imagine there are two tables. Order +----------------+ | ID | | Name | +----------------+

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.