I'm trying to reformat data in MS Access as the number of rows exceeds what Excel can do. However, this is my first attempt with subqueries, and could do with some assistance in what I should be doing.
I have data that looks like the following:
t, id, x
1, 10, 1
1, 20, 5
1, 30, 10
2, 10, 2
2, 20, 7
2, 30, 14
and I'm trying to mung it into this order:
id, t1, t2, x1, x2
10, 1, 2, 1, 2
20, 1, 2, 5, 7
30, 1, 2, 10, 14
...
10, 70, 71, 66, 68
etc.
The data presented are distances and time values -- so I want to reformat the above to then calculate speed through (x2 - x1) / (t2 - t1).
Is this something that Access can assist with? I'm not too fussed about having to use multiple tables / queries to get to the end result... Just so long as I get there!!!