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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:39:27+00:00 2026-05-13T14:39:27+00:00

Hi to all you mighty SQLsuperheros out there.. Can anyone rescue me from imminent

  • 0

Hi to all you mighty SQLsuperheros out there..
Can anyone rescue me from imminent disaster and ruin?

I’m working with Microsoft Access SQL. I’d like to select records in one table (table1) that don’t appear in another (table2) .. and then insert new records into table2 that are based on records in table1, as follows:

[table1]
file_index : filename

[table2]
file_index : celeb_name

I want to:

Select all records from table1 where [filename] is like aud
and whose corresponding [file_index] value does not
exist in table2 with with field [celeb_name] = ‘Audrey Hepburn’

With that selection I then want to insert a new record into [table2]

[file_index] = [table1].[file_index]
[celeb_name] = ‘Audrey Hepburn’

There is a one to many relationship between [file_index] in [table1] and [table2]
One record in [table1], to many in [table2].

Many thanks

  • 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-13T14:39:27+00:00Added an answer on May 13, 2026 at 2:39 pm

    Will this do? Obviously add some square brackets and stuff. Not too into Access myself.

    INSERT INTO table2 (file_index, celeb_name)
    SELECT file_index, 'Audrey Hepburn'
    FROM table1
    WHERE filename = 'aud'
      AND file_index NOT IN (SELECT DISTINCT file_index 
                             FROM table2 
                             WHERE celeb_name = 'Audrey Hepburn')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From the mighty PEP 8 : [P]lease limit all lines to a maximum of
All, If I run a query like the following: $qry = Select wrong_column from
good morning, o mighty Stack. we're working on a site built in wordpress, using
Is there a way to rename a build in buildbot without losing all of
I am having problems with sets all day. Some I can solve, others not.
Is there a way to prevent CMake from creating a symlink for shared libraries
I've been struggling all day calling a Stored Procedure from a classic ASP page.
I'm working on a script currently that needs to pull information down from a
As you all might know that the MIPS instruction set supports clz (count leading
This might be a stupid question but I'm new at all this. I want

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.