brickbuilder
New Member
- Joined
- Apr 10, 2015
- Messages
- 30
Primary key | ID | Category | Type | Date | Cost |
---|---|---|---|---|---|
563 | 105 | par | M | 7/15/2014 | $20.00 |
858 | 105 | par | M | 1/24/2015 | $-00 |
1604 | 105 | par | M | 8/24/2012 | $34.00 |
4175 | 105 | par | M | 11/14/2013 | $67.00 |
5203 | 105 | other | LS | 5/24/2012 | $36,43.00 |
5939 | 105 | other | O | 7/19/2014 | $33,45.00 |
9298 | 105 | bip | LS | 6/2/2013 | $18,36.00 |
9410 | 105 | bip | LS | 12/31/2014 | $13,98.00 |
<tbody>
</tbody>
Hi, I'm very new to access. I have data from 2012 to 2015 that looks like the above for 1 ID. I need to get the following:
A-freq of all par >0 in 2012 that had no LS in 2012
B-freq of all LS in 2013 to 2015 that had par >0 in 2012
The category and type mixture are really messing me up.
I can get all the par from 2012 that had no LS in that year.
I can get all the LS in 2013-2015 that had par in 2012.
But then I'm stuck in what to do next.
I'm wondering about a few things but I'll start here:
1-When I do A and B I notice that there's some ID from query A that are not in query B. It's expected but how do I get a single table that shows them together? Some freq LS 2013-2015 will be zero but all par will be greater than 0 for a given ID. What I mean is below.
ID | freq par 2012 | freq LS 2013-2015 | |||
---|---|---|---|---|---|
105 | 1 | 2 |
<tbody>
</tbody>
Thanks for your help!
Last edited: