Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access Query Problem

Posted on 2014-04-11
3
172 Views
Last Modified: 2014-04-17
My company has merged with another and neither of our Sales Analysis softwares will talk with each other.  However, I believe I can get the information we need through importing/exporting data from those softwares to Excel and then into Access.

Each file has similar data (Job Number, Sales amount, Customer, etc) but what I'm trying to do is instead of having all the data displayed (both company A and company B) I would like to take the sales from company and and deduct the work that company B did for company A to have a true value of the sale.

Any ideas?
0
Comment
Question by:lordzack
3 Comments
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 350 total points
ID: 39995036
You will need to summarize the data from each system using separate queries and then join those totals queries and do the subtraction to find the true value.

The bigger problem will be with the differences in keys and codes between the two systems.  You will probably have to develop some cross reference tables so you can determine that job 456 in company A's file is actually job 83799 in company B's file.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 150 total points
ID: 39995041
I suggest the you create queries of the sales for each subsidiary. In the commissioning subsidiary, ignore all sales to the new partner.

Create a union query to show all in one (not possible in the design view). Then if you need  totals, create a GroupBy/Total query from the union query.

It can probably all be done in one piece of SQL, but doing it this way will help you and subsequent maintainers to understand the process.
0
 

Author Closing Comment

by:lordzack
ID: 40007536
What I ended up doing was a combination of your suggestions - Thank you for putting me on the right path.  First I started with 2 tables (one for each Division.  Then I made a query for each bit of information (Sales, Outside Purchases, Labor, etc) from each table.  Once that was done I made a master query with the information from all the queries which gave me the data on a single row - giving me the power to do calculations on a record where needed.

Thank you for your help!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question