error: not a group by expresion 2

Posted on 2005-05-15
Last Modified: 2010-04-05
Why this query not work?

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

error: not a group by expresion

id_cli         varchar2(21)
id_typpts   char(21)
mnt_nr     nummber(19,4)
nbr_pt      nummber(14,4)
Question by:selas
    LVL 22

    Accepted Solution


    Select id_cli, id_typpts, sum(mnt_nr), sum(nbr_pt) from fmouvem group by id_typpts, id_cli

    Author Comment

    Thanks :)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now