No I want to fetch records in such a way that I display target first, and then result and then vairance.
function_id, daily_variance, week1_variance, week2_variance, week3_variance.
So one function_id should have 3 sets of records.
Now there could be several such function_ids.
How should I construct a query, (This is a requirement )which would fetch the records in above defined format.