Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Is this error correct or a bug?
Sun, Mar 29 2009 9:23 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Is this error correct

select _Dialings, _Connected , MAX(_Dialings) from userstats

ElevateDB Error #700 An error was found in the statement at line 1 and column 19 (Invalid expression "_Connected" found, the necessary GROUP BY clause is missing)

Roy Lambert
Mon, Mar 30 2009 4:25 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Is this error correct

select _Dialings, _Connected , MAX(_Dialings) from userstats

ElevateDB Error #700 An error was found in the statement at line 1 and
column 19 (Invalid expression "_Connected" found, the necessary GROUP BY
clause is missing) >>

Yes, it's correct - you can't have column names in the SELECT list without a
GROUP BY.  You can only have constants or aggregate functions.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Mar 31 2009 7:40 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

> select _Dialings, _Connected , MAX(_Dialings) from userstats
>
> ElevateDB Error #700 An error was found in the statement at line 1 and
>column 19 (Invalid expression "_Connected" found, the necessary GROUP BY
>clause is missing) >>
>
>Yes, it's correct - you can't have column names in the SELECT list without a
>GROUP BY. You can only have constants or aggregate functions.

I think I know what you mean, and if I'm right, for greater clarity shouldn't it read

you can't have column names in the SELECT list without a
GROUP BY when a aggregate function is used

???

Roy Lambert
Thu, Apr 2 2009 3:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I think I know what you mean, and if I'm right, for greater clarity
shouldn't it read

you can't have column names in the SELECT list without a GROUP BY when a
aggregate function is used >>

Well, I assumed that the discussion was only pertaining to this particular
SQL statement, so my statement was directed towards it and not every SELECT
statement in general. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Apr 3 2009 2:57 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


aaahh

Roy Lambert
Image