Jump to content
TheBioh4z4rdx

Firebird 5.0 with FastReport (Delphi 12): unknown ISC error 0

Recommended Posts


When I execute a simple "SQL" with frxDBXQuery within Fast Report, using "SUM" : Unknow ISC error 0
If I remove the "SUM" the "SQL" query works...

 

Quote

SELECT NF.DOCUMENT, SUM(NF.TOTAL) AS TOTAL FROM NF GROUP BY NF.DOCUMENT

 

Pls help me 😞

Edited by TheBioh4z4rdx

Share this post


Link to post

The GROUP BY NF.DOCUMENT part is missing

Share this post


Link to post

For compiling SQL texts I recommend to use some DB manager. It would print this error directly!

Share this post


Link to post

I am veryr sorry... I forgot to copy the last part of the "SQL".....

Quote

SELECT NF.DOCUMENT, SUM(NF.TOTAL) AS TOTAL FROM NF GROUP BY NF.DOCUMENT

Unknow ISC error 0 

The error occurs in all reports that use "SUM", when viewing them in "Fast Report"....

DBeaver/IBexpert the "SQL" works normally.
 

Share this post


Link to post

Try the follow

SELECT NF.DOCUMENT, CAST(SUM(NF.TOTAL) AS INTEGER) AS TOTAL FROM NF GROUP BY NF.DOCUMENT

This also can happens with functions SUM, AVG, MIN, MAX...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×