Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

CTE Group By not grouping results correctly

$
0
0
I have the following CTE that is doing a SUM on the field MERCHANDISE_AMT, seperately from 2 different queries and then I'm joining those results together in the final select. I'm having a problem with the Group By on either the inner queries and/or the f

Viewing all articles
Browse latest Browse all 3145

Trending Articles