I have one column like from query SELECT * FROM Score_TABLE
and it returns a result like this:
Score
-----
78
712
Now I have to display it with query like this:
Score Score2
---------------
78 712
Points is dynamic.
select
a.Score
from
(select
a.Score
from
(select
concat(sum(s.bat_run), '-',
(select count(s.out_type) from status s
where s.out_type = 'out'
and s.match_id = 77)) Score
from
status s
where
s.match_id = 77
group by
s.toss) a
where
a.Score = Score) a
where
a.Score = Score
Result:
Score Score2
---------------
12 42