We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
if I run the below code then I get unexpected error
const tr = await pool.getDatabase();
const sql='select fok_tetel.fok1 FOK, sum(fok_tetel.osszeg) osszeg from fok_tetel group by fok_tetel.fok1 '; const param: any[] = []; const result = await tr.query(sql, param,true); console.log(result);
if I use min, max or avg function , then it perfect...
The text was updated successfully, but these errors were encountered:
if I use cast() for the osszeg field then it is all OK ...
const sql='select fok_tetel.fok1 FOK, cast(sum(fok_tetel.osszeg) as numeric(15,2)) osszeg from fok_tetel group by fok_tetel.fok1 ';
Sorry, something went wrong.
Man, you have no idea how much you helped me, my sincere thanks
This should also work:
const sql='select fok_tetel.fok1 FOK, sum(fok_tetel.osszeg * 1.00) osszeg from fok_tetel group by fok_tetel.fok1
No branches or pull requests
Hi!
if I run the below code then I get unexpected error
const tr = await pool.getDatabase();
const sql='select fok_tetel.fok1 FOK, sum(fok_tetel.osszeg) osszeg
from fok_tetel
group by fok_tetel.fok1
';
const param: any[] = [];
const result = await tr.query(sql, param,true);
console.log(result);
if I use min, max or avg function , then it perfect...
The text was updated successfully, but these errors were encountered: