GROUP-BY expression must contain at least one column that is not an outer reference

11,182

you cannot give Group by 1

try

SELECT
SolutionName    -- Solution_NAM
from  Table_View
Group By SolutionName
Share:
11,182
Dantes
Author by

Dantes

Updated on June 17, 2022

Comments

  • Dantes
    Dantes about 2 years

    i have this query:

    SELECT
    SolutionName    -- Solution_NAM
    from  Table_View
    Group By 1
    

    where Table_View is of course a view. I am gettign this error message:

    Each GROUP BY expression must contain at least one column that is not an outer reference.

    Can you help me resolve this? It´s inside Ms SQL Server 2008