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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:25:34+00:00 2026-06-04T05:25:34+00:00

I have an Access 2007 table called Master which contains, among many many others,

  • 0

I have an Access 2007 table called Master which contains, among many many others, the following columns:

Master.UID, 
Master.[Team Comments], 
Master.[Judy Comments], 
Master.[Sue Comments], 
Master.[Paul Comments], 
Master.[CSE Comments], 
Master.[CSE Name], 
Master.[Sue Comments1], 
Master.[David Comments] 

I would like to create a new table called Comments which looks like this:

CommentID
UID
Name
Comment

There are several issues here:

  1. There are two Sue comment columns; these should not be concatenated, but a seperate row put in for each entry.
  2. With one exception, the value of the Name column is in the name of the Master column
  3. The exception is the CSE comment and CSE name
  4. The UID is the foreign key to the Master table
  5. Skip any blank comment fields, of which there are many.

As you can see, I’m trying to apply just a touch of normalization to one craaaaaazy big table.

TIA!

  • 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-04T05:25:36+00:00Added an answer on June 4, 2026 at 5:25 am

    This is apparently a one-time action, so there is no need to do this in one single query.
    This means that it’s actually very easy, because you can build a separate query for each value and just execute one after another.

    The basic pattern looks like this (for the Team Comments column).

    insert into comments (UID, Name, Comment)
    select UID, 'Team', [Team Comments] from master where [Team Comments] is not null
    

    (Note that I assume that the CommentID is an auto value field, so I don’t have to deal with it at all)

    For the two Sue Comments columns, you just execute two similar queries in a row:

    insert into comments (UID, Name, Comment)
    select UID, 'Sue', [Sue Comments] from master where [Sue Comments] is not null
    
    insert into comments (UID, Name, Comment)
    select UID, 'Sue', [Sue Comments1] from master where [Sue Comments1] is not null
    

    And for the “CSE” columns…I understood that the Name for the CSE Comments column is not fixed as in the other examples, but it should be taken from the CSE Name column instead.
    Correct? If yes, then the query would need to look like this:

    insert into comments (UID, Name, Comment)
    select UID, [CSE Name], [CSE Comments] from master where [CSE Comments] is not null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a legacy MS Access 2007 table that contains 52 fields (1 field
I have the following macro which needs to loop though an Excel-2007 table. The
I have an access 2007 table with about 3000 records, to which I have
I have a list of polylines(which i got by querying an access 2007 table)
I have the following table in MS Access 2007: customer | Promotion | Month
I have a table of data in MS Access 2007. There are 6 fields
I have a table in an Access 2007 database. All fields are of type
I have got a table in MS Access 2007 with 4 fields. Labour Cost
I have the following problem in a Database using Access 2007 as front end
I'm creating a HR database in access 2007 I have a main table of

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.