Re: Error messageORA-00979: not GROUP BY expression
From: Michael Jacobs (iq193_at_earthlink.net)
Date: 11/05/03
- Next message: John: "UserName retrieval from Windows 2000"
- Previous message: Sean McGarvey: "Re: Cannot Read Certain DBase Fields with Delphi"
- In reply to: Bernard Stibbe: "Error messageORA-00979: not GROUP BY expression"
- Next in thread: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Reply: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Reply: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 4 Nov 2003 19:41:52 -0500
Hello,
are you setting the parameter type for :bu bind variable?
regards,
Michael
"Bernard Stibbe" <bernard@bstibbe.demon.nl> wrote in message
news:3fa6bd80@newsgroups.borland.com...
> Hello users.
>
> I'm writing an application on a Oracle 8 database in combi with the
> ADO components. The OLE DB provider is Microsoft for Oracle.
>
> I'm trying to get a report that display some info.
>
> This is the command SQL in ADOQuery:
>
> ==========
> SELECT c.CONTRACT_NR CONTRACT, t.CODE_WD CODE_WD
> FROM CONTRACT c, TARIEFLAAG t
> WHERE c.BU = decode(:BU, 'PA','1', 'BP', '2')
> AND c.CONTRACT_NR = t.CONTRACT_NR
> GROUP BY c.CONTRACT_NR, t.CODE_WD
> =====
> The parameter will be a string 'PA'or 'BP'.
> When I assign a value for the paramenter and run the sql statement,
> Oracle returns the message 'ORA-00979: not GROUP BY expression.'
>
> When I replace manually the parameter :BU to a string in the sql statement
> without any parameters, the statement runs well. If I don't use the GROUP
BY
> function but with the parameter, it works also well ?
>
> What is the reason of the error message and how can you fix this.
>
> Any help is helpfull.
>
>
> Regards,
>
>
> Bernard S
>
>
- Next message: John: "UserName retrieval from Windows 2000"
- Previous message: Sean McGarvey: "Re: Cannot Read Certain DBase Fields with Delphi"
- In reply to: Bernard Stibbe: "Error messageORA-00979: not GROUP BY expression"
- Next in thread: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Reply: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Reply: Bernard Stibbe: "Re: Error messageORA-00979: not GROUP BY expression"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|