Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Using Case Operators in DBSIAM
Fri, Jan 20 2006 6:53 PMPermanent Link

"Simone"
Hello, I need help using Case stmts in DBSIAM 4.22 build 3.  I am =
getting "Invalid use of non-aggregated column expression in Select SQL"

This is my sql statement and it gives me the above error.
SELECT dt."Transaction Code",
      dt."Initials",
      case
         when (dt."Transaction Code" in (13,14) then SUM(dt."Quantity")
         when dt."Transaction Code" in (22,26,9) then Count(*)
      end AS sumItems,
      case
        when (dt."Transaction Code" in (13,14)) then SUM(dt."Int Data =
1")
       when dt."Transaction Code" in (22,26) then Sum(dt."Quantity")
      end as SumTckts
FROM "Daily Transactions" DT
GROUP BY dt."Transaction Code", dt."Initials"
ORDER BY dt."Transaction Code"

Does not like me to use the IN  operator in the case statement.

Can you help me?

Semone
Mon, Jan 23 2006 5:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Simone,

<< Hello, I need help using Case stmts in DBSIAM 4.22 build 3.  I am getting
"Invalid use of non-aggregated column expression in Select SQL" >>

It's a bug - DBISAM should be making an exception for CASE WHEN expressions
(in this case, the IN clause) as well as IF expressions that determine the
branching, but it isn't.

A fix will be available in about a week in a new build.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jan 26 2006 10:22 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


I think I'm correct in saying the fix for this will be in V4.22b5, but I've lost track somewhere.  Am I right?


Roy Lambert
Thu, Jan 26 2006 8:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I think I'm correct in saying the fix for this will be in V4.22b5, but
I've lost track somewhere. Am I right? >>

Correct.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jan 26 2006 9:34 PMPermanent Link

"Ralf Bertoldi"
> I think I'm correct in saying the fix for this will be in V4.22b5,
> but I've lost track somewhere.  Am I right?

...wouldn't it be nice if the bug fix would be in 5.0.0.1 next week..Smile

<bg>

ralf
Fri, Jan 27 2006 9:42 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ralf,

<< ..wouldn't it be nice if the bug fix would be in 5.0.0.1 next week..Smile
>>

Yes, it would be.  But alas, it will not. Frown I will have some screen shots
available within the next week of the ElevateDB Manager utility, however.
Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Jan 31 2006 7:58 PMPermanent Link

"Ralf Bertoldi"
Tim Young [Elevate Software] wrote:

> Yes, it would be.  But alas, it will not. Frown I will have some
> screen shots available within the next week of the ElevateDB Manager
> utility, however. Smiley

will the screen shots be "production stable" or just "beta"..?

Frown

ralf
Wed, Feb 1 2006 8:05 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ralf,

<< will the screen shots be "production stable" or just "beta"..? >>

Neither, they're simply screen shots. Wink

--
Tim Young
Elevate Software
www.elevatesoft.com

Image