What causes error “Strings cannot be added or subtracted in dialect 3”

Marry James

I have the query:

WITH STAN_IND
AS (
SELECT ro.kod_stanow, ro.ind_wyrob||' - '||ro.LP_OPER INDEKS_OPERACJA, count(*) ILE_POWT
FROM M_REJ_OPERACJI ro
JOIN M_TABST st ON st.SYMBOL = ro.kod_stanow
WHERE (st.KOD_GRST starting with 'F' or (st.KOD_GRST starting with 'T')  )  AND ro.DATA_WYKON>'NOW'-100
GROUP BY 1,2)

SELECT S.kod_stanow, count(*) ILE_INDEKS, SUM(ILE_POWT-1) POWTORZEN
from STAN_IND S
GROUP BY S.kod_stanow
ORDER BY ILE_INDEKS

That should be working, but I get an error:

SQL Error [335544606] [42000]: Dynamic SQL Error; expression evaluation not supported; Strings cannot be added or subtracted in dialect 3 [SQLState:42000, ISC error code:335544606]

I tried to cast it into bigger varchar but still no success. What is wrong here? Database is a Firebird 2.1

Next Post

MegaPersonals: A “Sugar Daddy” version of Match Group’s Business Model

This story originally appeared on Best Stocks Dating has become a business for many people. More than 2,500 online dating websites are now available, with about 1 million new members signing up every day. Some people work hard in their day jobs only to come home and spend hours on the internet […]

Subscribe US Now