Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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 |
|---|
Tagged:
0