May 3, 2016 SQL vs. Excel – Subgroup medians Recently I ran across this post on how to do subgroup medians in Excel 2010. First you need to create a pivot table, then "do some copying and pasting and use a formula to make it happen". In SQL you can do this with one command. Read more