Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,伙计们,我需要生成以下报告格式..但在 sql 和 gridviwe 中没有得到任何逻辑。报告显示前四个月的数据,包括当前月份。请建议..请参阅下面的报告格式
报告格式
您可以使用pivot和cube来解决您的问题。
下面是一个示例 http://blogs.msdn.com/b/craigfr/archive/2007/09/27/aggregation-with-cube.aspx http://www.codeproject.com/Articles/201320/Dynamic-Pivoting -with-Cubes-and-eventhandlers-in-S