I have a similar table to this:
Id Name CommitDate Commits
------ ------- ----------- --------
1 Ahmed 2018-07-05 2
1 Ahmed 2018-07-07 6
I need this output:
Id Name Summary
------ ------- -------------------------------------------------
1 Ahmed 2 commits on 2018-07-05\n 6 commits on 2018-07-07
Actually, I stopped at this:
SELECT Id, Name, '' AS Summary FROM Commits
GROUP BY Id, Name
and couldn't continue, as every GROUP BY
clause I used before came with a simple aggregate function, I'm unable to figure out if there is an aggregate function that can append grouped columns together!