I'm trying to execute a simple group by and am get...
# suiteql
a
I'm trying to execute a simple group by and am getting 'invalid or unsupported search'. I'm very new to suiteql. Otherwise the search returns what I need.
z
group by SUM????
a
That's my aggregate function. I'm very new.
z
aggregate function goes in select simplified select tranid, sum(amount) group by tranid
a
This also gives me an error. Can I have extra columns in the SELECT statement (for debugging purposes) or do I need to remove them.
z
all non-aggregate columns in select MUST be in GROUP BY list...
a
Ah thank you very much.
z
also, maybe it works, but I suggest you change line #2 "as item" into 'as somethingelse" to avoiding confusion with item in join statement
t
@Alan Fitch Not sure if this is what you're looking for, but it might help: https://timdietrich.me/blog/netsuite-suiteql-journal-entries-gl-impact/