• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

error: not a group by expresion 2

Why this query not work?

  AdoQuery1.SQL.Clear;
  AdoQuery1.SQL.Add('Select id_cli, id_typpts, sum(mnt_nr), sum(nbr_pt) from fmouvem group by id_typpts');
  AdoQuery1.Open;

error: not a group by expresion

id_cli         varchar2(21)
id_typpts   char(21)
mnt_nr     nummber(19,4)
nbr_pt      nummber(14,4)
0
selas
Asked:
selas
1 Solution
 
Mohammed NasmanSoftware DeveloperCommented:
use

Select id_cli, id_typpts, sum(mnt_nr), sum(nbr_pt) from fmouvem group by id_typpts, id_cli
0
 
selasAuthor Commented:
Thanks :)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now