How to group row value using SQL Server? -


i want group same yaxistitle in sql server, below image shows data.

enter image description here

expected result:

enter image description here

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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -