Discussions
Query result differ from Suitetalk rest api and Tim Dietrich query tool.
In the following query why different results between Suitetalk rest api and Tim Dietrich's query tool? I am running under the same role in both cases.
SELECT
a.id as accountId,
SUM(tal.debit) - SUM(tal.credit) AS balance
FROM account AS a
inner JOIN transactionaccountingline AS tal ON a.id = tal.account
inner JOIN transaction AS t ON tal.transaction = t.id
WHERE a.id in (213,327, 328, 334, 345)
and t.trandate <= TO_DATE('11/07/2025', 'mm/dd/yyyy')
and t.posting = 'T' AND a.isinactive = 'F'
GROUP BY a.id
ORDER BY a.id
Result for Tim's tool:
accountid | balance |
|---|