I have three tables, with the following setup:
Ph
ID
time (in the format: datetime)
Ph
Total suspended solids
ID
time (in the format: datetime)
solids
TEMPERATURE
ID
time (in the format: datetime)
temp
the three values being, temperature, ph and solids are updated seconds apart from each other as per sample below,
ID time temp
123335 2013-03-29 21:34:05 26.56
123336 2013-03-29 21:35:05 26.56
123337 2013-03-29 21:36:05 26.56
ID time solids
113886 2013-03-29 21:34:19 146
113887 2013-03-29 21:35:19 146
113888 2013-03-29 21:36:19 146
ID time Ph
62147 2013-03-29 21:34:04 7.39
62148 2013-03-29 21:35:04 7.43
62149 2013-03-29 21:36:04 7.43
I would like to query mysql to obtain the result below (note I have omitted the seconds from the table)
time temp solids Ph
2013-03-29 21:34 26.56 146 7.39
2013-03-29 21:35 26.56 146 7.43
2013-03-29 21:36 26.56 146 7.43
Please can you help me with the query?