So I have to use a database which has time as column (there's a column for every 10 min in a specific day), the id
in here isn't a primary key even though it's unique (and a primary key) in another table. And the rows equals to a day.
So I'd like to have the value for each time slot with it's datetime on a row.
Is that even possible ? I could write a little program that recreate a table with what I need but I'd like to have as less duplicate data as possible.
What I have :
+---+----------+-----+-----+-----+-----+
|ID | DATE |00h00|00h10|00h20|00h30|
+---+----------+-----+-----+-----+-----+
|1 |2016-09-28|80 |79 |75 |73 |
+---+----------+-----+-----+-----+-----+
|1 |2016-09-27|82 |80 |76 |74 |
+---+----------+-----+-----+-----+-----+
What I'd like to have :
+---+----------------+-----+
|ID | DATE |VALUE|
+---+----------------+-----+
|1 |2016-09-28 00h00|80 |
|1 |2016-09-28 00h10|79 |
|1 |2016-09-28 00h20|75 |
|1 |2016-09-28 00h30|73 |
+---+----------------+-----+
|1 |2016-09-28 00h00|82 |
|1 |2016-09-28 00h10|80 |
|1 |2016-09-28 00h20|76 |
|1 |2016-09-28 00h30|74 |
+---+----------------+-----+