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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:12:11+00:00 2026-06-06T09:12:11+00:00

I have two queries that produce the same columns but different rows. The first

  • 0

I have two queries that produce the same columns but different rows. The first looks at an employee table and assigns a user role based on the employees department. Then the second looks at the property table joined with the employee table. If an employee’s ID is listed in the propertytable.SupervisingManager column it creates another user, one has already been created from the employee table, with an assigned role that has elevated permissions. I am exporting the query results to excel and they will be used to import users into a new management software. I can just run two exports and put them together into one spreadsheet but i would like to make this process as simple as possible for potential future exports. I should also mention i am using MS Access for a database.

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-06-06T09:12:13+00:00Added an answer on June 6, 2026 at 9:12 am

    You can do that with a union query

    SELECT Field1, Field2, Field3 FROM source1
    UNION ALL
    SELECT Field1, Field2, Field3 FROM source2
    

    Note: If you write only UNION instead of UNION ALL access returns only DISTINCT rows.

    You can add any number of sources

    SELECT Field1, Field2, Field3 FROM source1
    UNION ALL
    SELECT Field1, Field2, Field3 FROM source2
    UNION ALL
    SELECT Field1, Field2, Field3 FROM source3
    UNION ALL
    SELECT Field1, Field2, Field3 FROM source4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two queries that produce the same output. One is using the Intersect
Currently I have two different queries that return exactly the same results however, changing
I have two different DataContexts (SQL Databases) that have the same data, just with
I'm seeing OraclePreparedStatement executeQuery() exhibit serialization. That is, I have two queries that I
I have two relatively complex queries that I am trying to join together into
I have the following two queries, I believe that the one that uses the
I have two queries. The first one is.. INSERT INTO balik ( balik_date, balik_time,
I have two SQL queries producing different results when I would expect them to
I have two columns in my products table, category1, and category2. In my categories
I wrote two queries below that produce one row of data each. What is

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.