error 8120 not contained aggregate function error
From: Josema (Jestrade_at_ocu.org)
Date: 10/06/04
- Next message: Joe Scalise: "Re: opposite of a inner join?"
- Previous message: Joe Scalise: "Re: opposite of a inner join?"
- Next in thread: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Reply: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Reply: Adam Machanic: "Re: error 8120 not contained aggregate function error"
- Reply: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 6 Oct 2004 08:57:02 -0700
Hi to all,
Im getting an error 8120:
Column <column name> is invalid in the select list because it is not
contained in either an aggregate function or the GROUP BY clause.
In my procedure i want to select from two tables CCList and CCThemes some
values, and all group by CCList.CalculationTheme
CREATE PROCEDURE dbo.CC_GetCCByTheme
@ThemeID int
AS
Select CCList.CalculationID, CCList.CalculationName, CCThemes.ThemeName,
CCList.CalculationURL, CCList.CalculationDate, CCThemes.ThemeImage,
CCList.CalculationClosed
from CCList inner join CCThemes on CCThemes.ThemeID=CCList.CalculationTheme
where CCList.CalculationTheme=@ThemeID Group By CCList.CalculationTheme
Why this error its returning?
-- Thanks Regards. Josema
- Next message: Joe Scalise: "Re: opposite of a inner join?"
- Previous message: Joe Scalise: "Re: opposite of a inner join?"
- Next in thread: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Reply: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Reply: Adam Machanic: "Re: error 8120 not contained aggregate function error"
- Reply: Mal .mullerjannie_at_hotmail.com>: "RE: error 8120 not contained aggregate function error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|