📞 +91-7667918914 | ✉️ ijarcce@gmail.com
IJARCCE Logo
International Journal of Advanced Research in Computer and Communication Engineering A monthly Peer-reviewed & Refereed journal
ISSN Online 2278-1021ISSN Print 2319-5940Since 2012
IJARCCE adheres to the suggestive parameters outlined by the University Grants Commission (UGC) for peer-reviewed journals, upholding high standards of research quality, ethical publishing, and academic excellence.
← Back to VOLUME 4, ISSUE 12, DECEMBER 2015

Performance Measurement using CASE Expression over PIVOT Operator in SQL Server 2008 r2

Mr. Sudhakar Panigrahy, Mr. Pragnyaban Mishra

DOI: 10.17148/IJARCCE.2015.41219

Abstract: Data aggregation using PIVOT operator is useful in many aspects by converting data from rows into column as per the common values. The execution can be faster by using CASE expression in SQL Server 2008 r2. So, CASE expression can be used in the place of PIVOT operator. Some of the major issues in PIVOT operator are the grouping elements can�t be defined explicitly. Thus, when database schema changes by adding new column in the existing tables results NULL value in the report. Getting row and column wise aggregated value not possible with PIVOT operator. At a time only one grouping function can be used i.e Different grouping functions can�t be applied in different pivot columns. These problems can be solved by using CASE expression. In this paper it is explained the difficulties observed in PIVOT operator and solved using CASE Expression.



Keywords: SQL Server 2008 r2, CASE expression, NULL value, PIVOT operator.

How to Cite:

[1] Mr. Sudhakar Panigrahy, Mr. Pragnyaban Mishra, “Performance Measurement using CASE Expression over PIVOT Operator in SQL Server 2008 r2,” International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2015.41219