I know that there are a lot of pivot table examples on the internet, although I'm new to SQL and I am having trouble Is a bit because all the examples seem related to the overall work.
Table 1: | Date | Tag | Price | | 06/10 2:00 a.m. 65 | | 06/10 2:00 pm b. 44 | | 06/10 2:00 p.e. 33 | | 06/10 2:02 p.m. | A. 12 | | 06/10 2:02 p.m. | B 55 | | 06/10 2:02 p.m. | C. 21 | .... 06/10 1:58 am | A. 23
I want to see it (Table 2):
| Date | A. B C. | 06/10 2:00 pm 65 | 44 | 33 | 06/10 2:02 PM 12 | 55 | 21 | ..... 06/10 1:58 am 23 | e.t.c. | e.t.c. |
(sorry for format)
There are some issues that encounter (which does not work with the code I got online) A SQL job), every 2 minutes so that this figure from Table 1 is being constantly moved into 2 tables. Still I think that I will need to change the date of each time? (The syntax I have seen is that the pivot table itself seems simple in itself, but the datetime is giving me pain.
Comments
Post a Comment