473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Comparing 2 Tables in a Query

Hi Everyone,

I know there's been a lot of questions regarding the same kind of issue but I haven't been able to find an answer to my specific problem. Basically I have two tables, one table showing planned hours for a week and one table showing actual hours for that week.
At the beginning of each week employees are supposed to fill out the hours the expect to spend on each task. Then at the end of the week, they input the actual hours they spent on each task. This is done through a form which goes into the tables mentioned above. At the end of the month/year, we want to be able to compare how accurate the planned hours were compared to the actual hours. I think I have to do something regarding a find unmatched query, but I also need to be able to see the matched items as well. Below are my tables with their respective fields, as well as something along the lines of what I'm trying to make the query look like. (table, fields)

Planned Table
Week
Specific Task
Region
Hours


Actual Table
Week
Specific Task
Region
Hours



Hopefully the query can look something like this (I don't know how to do a table layout in the form yet so hopefully you get the idea


Week....... Specific Task............ Region..... Planned Hours.......... Actual Hours
8/6/2007... Meeting.................... AB........... 6.............................. 6
8/6/2007... Budget..................... AB........... 4.............................. 3
8/6/2007... Budget..................... BC........... 0.............................. 1

If anyone could tell me if there is a way to do this, I would really appreciate it.

Thanks,
Tiffany
Aug 9 '07 #1
3 1647
Rabbit
12,516 Expert Mod 8TB
Why not have an extra field in one table and then you can have a PlannedHours and ActualHours field? Then you can get rid of the other table.
Aug 9 '07 #2
That would provide a much simpler solution. I'll see if I can set it up in my form. Thanks for the advice
Aug 9 '07 #3
Rabbit
12,516 Expert Mod 8TB
That would provide a much simpler solution. I'll see if I can set it up in my form. Thanks for the advice
You'll have to change your table structure too, adding a new field.
Let us know if you run into any trouble.
Aug 9 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Dimension7 | last post by:
All, I am comparing to functions to see which is "better". In better, I mean more efficient, optimize, faster, etc. I have read other posts from other boards, but I'm not really sure of the...
2
by: Bung | last post by:
Hi, I am not really familiar with MS ACCESS. However, I am trying to make some reports where you compare current data from a table with old data from the same table. What I'm saying is we have...
4
by: osmethod | last post by:
Hello, I have read many articles about comparing tables, like - loops, delete queries, appending to temp table with index etc Problem: 2 tables T1 & T2. Data is suppposed to be the same in...
0
by: laxmiuk | last post by:
I've original version of a table called PMM (Product Material Master). Thro' a web interface, user can change that table contents. Once changed, i need to raise an ECN (Engineering CHange Note)...
19
by: Will Lastname | last post by:
In one of the applications that I'm working on I have 2 sets of functions that build different datasets. Imagine 4 columns in a datagrid. Inside those 4 columns I have nested datalists. Two of...
4
by: charliej2001 | last post by:
This is my first post on groups and id like to say that already its helped me out loads, but can't quite find what im looking for now I have 3 tables storing information about people; Main, Temp...
10
by: hibbii | last post by:
Could someone help me write a query or code that allows me to compare records based on the quarter? For example, in my table all the records have the PK set as (DCN & Quarter). The DCN is usually...
1
by: deepu1 | last post by:
i want to compare n pair of tables. i know to compare two tables the query is table 1 is having following columns uprn description blocknumber 1 gf 10 2 gf ...
4
by: gillianbrooks91 | last post by:
Forgive me for asking this question, I've trawled through nearly every available post on this subject that I can find for a few weeks now but nothing quite points me in the right direction. I'm...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.