I am trying to retrieve some data using the below query. I need to add one more table in the below query, 'request_meta', and have to sort using its column 'meta-value' which has data including texts, and unix timestamps.
I need to get these result in the chronological order of the timestamps in column 'meta-value' . Can anyone help me out?
SELECT rt.taxonomy_id,rt.iteration,ra.*,
FROM request_taxonomy rt
inner join request_aspects ra ON ra.aspect_id = rt.request_aspects_id
WHERE rt.requests_id = 17;
request_meta table structure as follows:
----------------------------------------
meta_id - Pri
requests_id - bigint
request_taxonomy_id - bigint
meta-value - varchar
Sample data in request_meta table . Third row is the date stored. The data from other tables needs to be sorted based on the ascending order of dates.
requests_id meta_value request_taxonomy_id
17 8 925
17 Customer Cluster 926
17 1446792318 966
17 1446103569 967