Hi All,
I have two tables called users and punch. In a punch table i have two columns one is called created_date and other is time_stamp.
'created_date' column store value in format of "1205299150" with type of int (11)
and
time_stamp column store value in format of "2008-03-12 08:45:00" with type timestamp
I want to display time_stamp column values in to two different columns 1) Time and 2) Date.
Can any one tell me what query i have to run for the same. I am currently using below mentioned query:
SELECT users.id, users.first_name, users.last_name, punch.created_date, punch.time_stamp
FROM users INNER JOIN punch on users.id = punch.created_by
WHERE users.id = '1'
Regards,
Jimi