I have a table abc with a field datetime_abc type-> DATETIME in mysql.
and table xyz with a field datetime_xyz type-> DATETIME
I want a query which can separate the Date and Time.
select TIME(datetime_xyz) xyz_time_only, DATE(datetime_xyz) xyz_date_only from xyz where.....
This returns me a separate date and time.
Now What i need is
select datetime_abc from abc where datetime_abc = xyz_date_only
If I’m not missing something you could try:
Or you could try