Error
Trying to access array offset on value of type bool
Error
Trying to access array offset on value of type null
Error
Error while accessing the database
near ")": syntax error
select count(*), sum(priceorder),strftime('%m',orderdate) from (SELECT orderid, orderdate, 'All Employees' AS groupby, priceorder FROM orders UNION SELECT orderid, orderdate, '' AS groupby, priceorder FROM orders WHERE employeeid = ) sc_sel_esp group by strftime('%m',orderdate) order by strftime('%m',orderdate)