How to group row value using SQL Server? -
i want group same yaxistitle in sql server, below image shows data.
expected result:
query used:
select q.questionid, q.questionname, p.perspectivetitle, x.xaxistitle, y.yaxistitle, c.value coaching_questionperspectivemap c inner join coaching_question q on c.questionid = q.questionid inner join coaching_perspective p on c.perspectiveid = p.perspectiveid inner join coaching_xaxisdata x on c.xaxisdataid = x.xaxisdataid inner join coaching_yaxisdata y on c.yaxisdataid = y.yaxisdataid q.questionid = 14 , p.perspectiveid = 1 order c.sort
please provide solution?
thanks,
if want data ordered shows in groups of yaxistitle, use this:
select q.questionid, q.questionname, p.perspectivetitle, x.xaxistitle, y.yaxistitle, c.value coaching_questionperspectivemap c inner join coaching_question q on c.questionid = q.questionid inner join coaching_perspective p on c.perspectiveid = p.perspectiveid inner join coaching_xaxisdata x on c.xaxisdataid = x.xaxisdataid inner join coaching_yaxisdata y on c.yaxisdataid = y.yaxisdataid q.questionid = 14 , p.perspectiveid = 1 order y.yaxistitle, c.sort
Comments
Post a Comment