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

  • Home
  • SEARCH
  • 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 9219415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:06:46+00:00 2026-06-18T03:06:46+00:00

I need to created a query in MS Access 2010 that combines data from

  • 0

I need to created a query in MS Access 2010 that combines data from 4 different tables in one column.

The tables are defined as below;

Table 1: date, country, channel, calls_in
Table 2: date, country, channel, calls_out
Table 3: date, country, channel, email
Table 4: date, country, channel, chat

The query should look like:

Query 1: Date, country, channel, contacts 

The contacts column should combine the 4 contact types (i.e. calls_in/out, email and chat) for the appropriate date, country and channel.

All 4 tables have the same dates and countries. Channel is specific to each table.

I have been trying to get this done but can’t get my head around it.

  • 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-18T03:06:47+00:00Added an answer on June 18, 2026 at 3:06 am

    You might be after this:

    SELECT
      all_contacts.date,
      all_contacts.country,
      all_contacts.channel,
      "calls in: " & [calls_in] & ", calls out: " & [calls_out] & ", email: " & [email] & ", chat " & [chat] AS contacts
    FROM
      ((((select date, country, channel from [Table 1] union
          select date, country, channel from [Table 2] union
          select date, country, channel from [Table 3] union
          select date, country, channel from [Table 4])  AS all_contacts
      LEFT JOIN [Table 1] ON (all_contacts.channel = [Table 1].channel) AND (all_contacts.country = [Table 1].country) AND (all_contacts.date = [Table 1].date))
      LEFT JOIN [Table 2] ON (all_contacts.channel = [Table 2].channel) AND (all_contacts.country = [Table 2].country) AND (all_contacts.date = [Table 2].date))
      LEFT JOIN [Table 3] ON (all_contacts.channel = [Table 3].channel) AND (all_contacts.country = [Table 3].country) AND (all_contacts.date = [Table 3].date))
      LEFT JOIN [Table 4] ON (all_contacts.channel = [Table 4].channel) AND (all_contacts.country = [Table 4].country) AND (all_contacts.date = [Table 4].date);
    

    Since MS-Access doesn’t support FULL OUTER JOINS, and doesn’t have an aggregate function like GROUP_CONCAT, I’m left joining a UNION subquery that contains all of the dates, countries and channels with every table, and I’m then combining all the contacts (calls_in, calls_out, email and chat) into one cell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query being created using OLEDB from access and need to get
I have created application where i just need to access data form assets folder.
I am using Windows 7, Access 2010 I have a database that I need
Let's say I have a dynamically-created table that is filled with data from a
I have a query in Data Access Object DAOComments that joins users table and
I need to create a select box with query data from my Database by
i need to change my query from native-query to ( named-query or create-query )
I need to decrypt a conection that was created initially under an account that
In one of my Django projects that use MySQL as the database, I need
Infrastructure has created an active directory account for me that has read access to

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.