dbarnett
05/12/2022, 4:53 PMCOUNT
?
this used to work: const queryStr = 'SELECT COUNT(*) AS recordcount FROM xxxxx';
, getting recordcount alias, but now comes back as expr1
it seems?
didn't know if this now to be expected, or is better way to phrase query so that Oracle SQL interprets it correctlyClay Roper
05/12/2022, 5:20 PMquery.runSuiteQL(queryStr).asMappedResults()
I am getting recordcount
as the column name, not expr1
dbarnett
05/12/2022, 5:24 PMdbarnett
05/12/2022, 5:35 PMtdietrich
05/12/2022, 5:40 PMdbarnett
05/12/2022, 5:41 PMxxx
instead, but no luck/same result of expr1
tdietrich
05/12/2022, 5:43 PMtdietrich
05/12/2022, 5:44 PMSELECT COUNT(*) AS *"recordcount"* FROM Employee
dbarnett
05/12/2022, 5:50 PMtdietrich
05/12/2022, 5:51 PMtdietrich
05/12/2022, 5:52 PMdbarnett
05/12/2022, 5:52 PMdbarnett
05/12/2022, 5:53 PMtdietrich
05/12/2022, 5:55 PMSELECT ( COUNT(*) ) AS recordcount FROM Employee
dbarnett
05/12/2022, 5:55 PMCOUNT(id)
to try that out and worked 😂tdietrich
05/12/2022, 5:55 PMtdietrich
05/12/2022, 5:56 PMdbarnett
05/12/2022, 5:56 PMtdietrich
05/12/2022, 5:56 PMThorsten Schmitz
05/16/2022, 11:59 AMdbarnett
05/16/2022, 12:16 PMCOUNT(id)
insteadThorsten Schmitz
05/16/2022, 12:18 PMSELECT id AS myIdAlias FROM table
?dbarnett
05/16/2022, 1:19 PMNick Benthem
05/18/2022, 3:08 AMCOUNT(*)
to COUNT(id)
was a fix for me.Andrew
05/18/2022, 6:09 AMCOUNT(*)
to be suredbarnett
05/20/2022, 1:11 PMSELECT COUNT(id) FROM Transaction
... coming back with expr1
again 😞tdietrich
05/20/2022, 2:25 PMdbarnett
05/20/2022, 2:37 PM