Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Counting from two tables.

Started 1 month, 3 weeks ago by Sporks
Hello, I am trying to compare two tables with different dates in them. One has the date where a product broke the other has a date where the product was sold. What I want to do is count the dates where the product was sold in between when the products broke. ex: Products Broke 1/01/01 1/01/02 1/01/03 Products...
Site: Access World Forums  Access World Forums - site profile
Forum: Tables  Tables - forum profile
Total authors: 2 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: access-programmers.co.uk

Other posts in this thread:

Atomic Shrimp replied 1 month, 3 weeks ago
Do the tables include an identifier by which you can ascertain which product was sold and when that specific product broke? (something like a transaction number, or in the case of multiple line transactions, a transaction number plus item ID?) You need some way of identifying which breakage event corresponds with the item from which purchase event.

Sporks replied 1 month, 3 weeks ago
I do have some other fields such as a Serial Number and a ID Number. What would I do with that?

Atomic Shrimp replied 1 month, 3 weeks ago
You'll need to join the two tables (in your query) by something common such as serial number - then you can calculate the difference between the bought date in one table and the broken date in the other, for corresponding pairs of records.

Sporks replied 1 month, 3 weeks ago
The thing is I need to count the date of the products bought because they could be the same date. ex: Broke 1/1/01 1/3/01 Bought 1/2/01 1/2/01 1/2/01 1/2/05 so the output table will look like Date 1/1/01 - 1/2/01 3 1/3/01 - Present 1

 

Top contributing authors

Name
Posts
Sporks
3
user's latest post:
Counting from two tables.
Published (2009-11-06 09:45:00)
The thing is I need to count the date of the products bought because they could be the same date. ex: Broke 1/1/01 1/3/01 Bought 1/2/01 1/2/01 1/2/01 1/2/05 so the output table will look like Date 1/1/01 - 1/2/01 3 1/3/01 - Present 1
Atomic Shrimp
2
user's latest post:
Counting from two tables.
Published (2009-11-05 14:21:00)
You'll need to join the two tables (in your query) by something common such as serial number - then you can calculate the difference between the bought date in one table and the broken date in the other, for corresponding pairs of records.

Related threads on "Access World Forums":

Related threads on other sites:

Thread profile page for "Counting from two tables." on http://www.access-programmers.co.uk. This report page is a snippet summary view from a single thread "Counting from two tables.", located on the Message Board at http://www.access-programmers.co.uk. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity