hello all below is my query and its giving fine results
SELECT `collection_series`.`chart_name`, `datadatexnumericy`.`x` as date, `datadatexnumericy`.`y`
FROM (`datadatexnumericy`)
JOIN `collection_series` ON `collection_series`.`series_id` = `datadatexnumericy`.`series_id`
WHERE `collection_series`.`collection_id` = '265'
chart_name date y
Sydney 1973-09-30 2.50000
Melbourne 1973-09-30 5.70000
Brisbane 1973-09-30 6.60000
Perth 1973-09-30 7.10000
but what if i want results like below is there any solution any help would be appriciated thanks in advance ...
date Sydney Melbourne Brisbane Perth
1973-09-30 2.50000 5.70000 6.60000 7.10000
below is my table structure
datadatexnumericy(first table)
series_id x y
43532 1991-12-31 -2.10000
don't confuse about series_id because city name is coming from collection series table where series_id matches and fetches city name
collection_series(second table)
in this table there is coloumn which name is collection_id and series_id
collection id is '265' and i am matching `collection_series`.`series_id` = `datadatexnumericy`.`series_id`