I have two tables and they both have a Time field. I am trying to get data from those two tables and when I run the query, the results are fine(what I am looking for).
Start_time Break_time Finish_time
2016-01-01 01:00:00 2016-01-01 01:05:51 2016-01-01 01:05:59
2016-01-01 01:00:00 2016-01-01 01:05:51 2016-01-01 01:06:12
2016-01-01 01:00:00 2016-01-01 01:06:26 2016-01-01 01:06:26
2016-01-01 01:00:00 2016-01-01 01:06:21 2016-01-01 01:06:35
2016-01-01 01:00:00 2016-01-01 01:06:49 2016-01-01 01:06:59
2016-01-01 01:00:00 2016-01-01 01:06:51 2016-01-01 01:07:24
2016-04-14 12:03:00 2016-04-14 12:27:39 2016-04-14 12:28:04
2016-04-14 12:03:00 2016-04-14 12:27:28 2016-04-14 12:28:07
2016-04-14 12:03:00 2016-04-14 12:27:38 2016-04-14 12:28:07
2016-04-14 11:30:00 2016-04-14 12:25:22 2016-04-14 12:28:08
2016-04-14 12:03:00 2016-04-14 12:27:57 2016-04-14 12:28:08
However, when I try to create a table so for the results to go in, the Time completely change.
Start_time Break_time Finish_time
2016-01-01 01:00:00 2016-01-01 01:05:51 2016-01-01 01:05:59 01
2016-01-01 01:00:00 2016-01-01 01:05:51 2016-01-01 01:06:12 01
2016-01-01 01:00:00 2016-01-01 01:06:26 2016-01-01 01:06:26 01
2016-01-01 01:00:00 2016-01-01 01:06:21 2016-01-01 01:06:35 01
2016-01-01 01:00:00 2016-01-01 01:06:49 2016-01-01 01:06:59 01
2016-01-01 01:00:00 2016-01-01 01:06:51 2016-01-01 01:07:24 01
2016-01-01 01:00:00 2016-01-01 01:07:14 2016-01-01 01:07:27 01
2016-01-01 01:00:00 2016-01-01 01:06:26 2016-01-01 01:07:32 01
2016-01-01 01:00:00 2016-01-01 01:07:03 2016-01-01 01:07:49 01
2016-01-01 01:00:00 2016-01-01 01:07:51 2016-01-01 01:08:01 01
2016-01-01 01:00:00 2016-01-01 01:07:44 2016-01-01 01:08:07 01
2016-01-01 01:00:00 2016-01-01 01:07:47 2016-01-01 01:08:08 01
2016-01-01 01:00:00 2016-01-01 01:07:06 2016-01-01 01:08:31 01
2016-01-01 01:00:00 2016-01-01 01:08:25 2016-01-01 01:08:53 01
The Start_time in the first table is TIMESTAMP(Type), CURRENT_TIMESTAMP(DEFAULT), on update CURRENT_TIMESTAMP(Extra). In the second table, the Break_time and Finish_time are both VARCHAR(TYpe), NULL(Default), None(Extra). I think this is what is causing the issue but can't figure out how to fix it. Any thoughts please?