Brining table data in single row
I have a table with the week number and the price, I want to bring the data if the user selects the week number – I have to get the following data in single row
1. selected week data
2. one week before the selected week
3. two week before the selected week
4. one week after the selected week
5. two week after the selected week
Something likes the following
Week Number Price
42 1000
43 1100
44 990
45 1150
46 1125
result
44 43 42 45 46
990 1100 1000 1150 1125
I am very raw in access or sql or vb - can anybody help me to solve the above, please
Thanks
Ramus
I have a table with the week number and the price, I want to bring the data if the user selects the week number – I have to get the following data in single row
1. selected week data
2. one week before the selected week
3. two week before the selected week
4. one week after the selected week
5. two week after the selected week
Something likes the following
Week Number Price
42 1000
43 1100
44 990
45 1150
46 1125
result
44 43 42 45 46
990 1100 1000 1150 1125
I am very raw in access or sql or vb - can anybody help me to solve the above, please
Thanks
Ramus