In the Excel query editor: select MAX(date) from ...
# suiteql
w
In the Excel query editor: select MAX(date) from systemnote where recordid = '102' and field ='INVTITEM.RUNITPRICE' This works (Brings back only the date column) select MAX(date), field from systemnote where recordid = '102' and field ='INVTITEM.RUNITPRICE' This does not. (I want more columns brought back) This is the error I receive: DataSource.Error: ODBC: ERROR [42000] [NetSuite][ODBC 64bit driver][OpenAccess SDK SQL Engine]Invalid SQL Syntax. All columns of the select list & order by should have set functions.[10136] Details: DataSourceKind=Odbc DataSourcePath=dsn=NetSuite OdbcErrors=[Table]
c
I think the issue here is that if you use a function on any column, you must use a function or group by the remaining columns.
Copy code
select MAX(date), field from systemnote where recordid = '102' and field ='INVTITEM.RUNITPRICE' group by field
w
@Clay Roper Ah.. perfect... I was putting my group by in the wrong spot when I was trying that. I tested want you suggested and I'm back in business. Thank you
1
c
Great to hear!