#1  
Old 10th October 2003, 04:46 AM
Joao Borges
 
Posts: n/a
Default NX1.01: Cast with Group By Error

Hello,

Reading closed issues for NX1.01 I thought this was resolved, but:

SELECT Cidade, CAST(SUM(Custo) AS Money) AS custo
FROM Chamada
GROUP BY cidade

will give error msg: "Non agreggate column ... must appear in group by"

Joao Borges
Brazil

  #2  
Old 10th October 2003, 04:51 AM
Joao Borges
 
Posts: n/a
Default Re: NX1.01: Cast with Group By Error

forgot to specify that field Cidade is a Nullstring[50] and Custo is a
Extended

  #3  
Old 10th October 2003, 05:19 AM
Joao Borges
 
Posts: n/a
Default Re: NX1.01: Cast with Group By Error

Per,

> Why do you need this? How about
>
> SELECT Cidade, SUM(CAST(Custo) AS Money) AS custo
> FROM Chamada
> GROUP BY cidade
>
> ?
>
> - Per


This works ! ... my mistake,

Thank you,

Joao.
  #4  
Old 10th October 2003, 06:11 AM
Per Larsen
 
Posts: n/a
Default Re: NX1.01: Cast with Group By Error

Joao,

Why do you need this? How about

SELECT Cidade, SUM(CAST(Custo) AS Money) AS custo
FROM Chamada
GROUP BY cidade

?

- Per

"Joao Borges" <suporte@cybermgr.com> wrote in message
news:3f859ef3@wic040d....
> Hello,
>
> Reading closed issues for NX1.01 I thought this was resolved, but:
>
> SELECT Cidade, CAST(SUM(Custo) AS Money) AS custo
> FROM Chamada
> GROUP BY cidade
>
> will give error msg: "Non agreggate column ... must appear in group by"
>
> Joao Borges
> Brazil
>





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ann: Join our Facebook fan group :) Eivind Bakkestuen [NDD] nexusdb.public.announcements 0 6th May 2010 11:51 PM
Error: Error: NexusDB: <unnamed TnxQuery instance>: Query execution failed Warren nexusdb.public.support.adoprovider 1 8th April 2010 02:55 PM
Automatic cast of boolean filds to integer Franz-Leo Chomse [NDX] nexusdb.public.support.odbc 5 5th March 2010 06:51 AM
sorry wrong group active when message sent :) Peter Sanders nexusdb.public.support.thirdparty 0 19th January 2010 09:33 PM
InstantObjects runs for SF CCA 2006! - Please cast your vote ! Carlo Wolter nexusdb.public.support.thirdparty 0 16th March 2006 12:28 AM


All times are GMT +11. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.