Gustavo Bertazzoli
2022-07-05 06:54:31 UTC
Hi guys,
It's my first message here but I hope that someone can help me.
I'm doing a simple SQL with count, but I'm always getting an error and I don't know why.
Here is the query:
select
count(ID)
from table1
where
IDstate not in ("release", "finished")
and dateformat(TIMESTAMP year to FRACTION(6), DEFAULT) >
dateformat(DATETIME "2022-07-05:00:00:00.000000" year to FRACTION(6), DEFAULT)
group by sequenceGroup
browse access;
here is the error:
...select count(ID) from table1...
^
*** ERROR from SQL [-3074]: You cannot specify COUNT when ALL is specified.
I didn't specified as ALL but maybe I don't. Can someone please help me?
It's my first message here but I hope that someone can help me.
I'm doing a simple SQL with count, but I'm always getting an error and I don't know why.
Here is the query:
select
count(ID)
from table1
where
IDstate not in ("release", "finished")
and dateformat(TIMESTAMP year to FRACTION(6), DEFAULT) >
dateformat(DATETIME "2022-07-05:00:00:00.000000" year to FRACTION(6), DEFAULT)
group by sequenceGroup
browse access;
here is the error:
...select count(ID) from table1...
^
*** ERROR from SQL [-3074]: You cannot specify COUNT when ALL is specified.
I didn't specified as ALL but maybe I don't. Can someone please help me?