Hi,
I have a table “TblBlocks”, which consists of columns “blockID”, “blockHeight” and “ProcessStep”.
BlockID BlockHeight ProcessStep
B52 2.85 1
A24 3.42 1
A41 3.23 1
A24 3.22 2
B52 2.52 2
A24 3.01 3
B52 2.08 3
A41 2.95 2
B52 1.86 4
A24 2.65 4
A41 2.51 3
B52 1.62 5
A41 2.14 4
A24 2.53 5
B52 1.32 6
I need a query or solution module to show me the relative difference in the height of blocks in the consecutive process steps of all blocks in the table.
The result should look like this:
BlockID HeightDifference ProcessStep
A24 0.2 2
A24 0.21 3
A24 0.36 4
A24 0.12 5
A41 0.28 2
A41 0.44 3
A41 0.37 4
B52 0.33 2
B52 0.44 3
B52 0.22 4
B52 0.24 5
B52 0.3 6
I have tried using crosstab query as an intermediate step, but that makes the solution complicated and cumbersome. Is another way to do this?
If you could provide an example that would help. Thanks...
I have a table “TblBlocks”, which consists of columns “blockID”, “blockHeight” and “ProcessStep”.
BlockID BlockHeight ProcessStep
B52 2.85 1
A24 3.42 1
A41 3.23 1
A24 3.22 2
B52 2.52 2
A24 3.01 3
B52 2.08 3
A41 2.95 2
B52 1.86 4
A24 2.65 4
A41 2.51 3
B52 1.62 5
A41 2.14 4
A24 2.53 5
B52 1.32 6
I need a query or solution module to show me the relative difference in the height of blocks in the consecutive process steps of all blocks in the table.
The result should look like this:
BlockID HeightDifference ProcessStep
A24 0.2 2
A24 0.21 3
A24 0.36 4
A24 0.12 5
A41 0.28 2
A41 0.44 3
A41 0.37 4
B52 0.33 2
B52 0.44 3
B52 0.22 4
B52 0.24 5
B52 0.3 6
I have tried using crosstab query as an intermediate step, but that makes the solution complicated and cumbersome. Is another way to do this?
If you could provide an example that would help. Thanks...