I have two tables:
Clients (parent table) and conversation (sub table).
My goal is to print the max date (date_added) from conversation with customer in parent table.
It's possible ?
If yes how to do it ?
below my sql working query:
Code: Select all
SELECT max(FROM_UNIXTIME(app_entity_54.date_added,'%Y-%m-%d')) FROM app_entity_54
INNER JOIN app_entity_53 ON app_entity_54.parent_item_id=app_entity_53.parent_item_id
WHERE app_entity_54.parent_item_id=10