/* Mark the wrapping FromSubquery and SelectNode as appropriate */
if (groupByList != null)
{
fromSubquery.markAsForGroupByClause();
selectNode.markAsForGroupByClause();
}
if (havingClause != null)
{
fromSubquery.markAsForHavingClause();
selectNode.markAsForHavingClause();