Hey,
Has anyone else encountered this situation? I am trying to do a select with a subquery and get the error message "458: Long Transaction Aborted" The info I found for this message states that it occurs inside a transaction. What transaction could I be running when I'm doing only a select? The code I'm executing is this:
set isolation to dirty read;
select mov_dt, count(*)
from rtkxtract a
where EXISTS (select DISTINCT b.bas_con_upc_no, b.mov_dt from rtkxtract b
where b.bas_con_upc_no = a.bas_con_upc_no
and b.mov_dt = a.mov_dt - DATE(1)
and b.sur_cd = '0' )
and a.sur_cd != '0'
group by mov_dt
order by mov_dt
Essentially, I'm trying to find those items in my table that switched their sur_cd values from one day to the next.
Anyone have any ideas?
Thanks,
Jeff Tendam
Has anyone else encountered this situation? I am trying to do a select with a subquery and get the error message "458: Long Transaction Aborted" The info I found for this message states that it occurs inside a transaction. What transaction could I be running when I'm doing only a select? The code I'm executing is this:
set isolation to dirty read;
select mov_dt, count(*)
from rtkxtract a
where EXISTS (select DISTINCT b.bas_con_upc_no, b.mov_dt from rtkxtract b
where b.bas_con_upc_no = a.bas_con_upc_no
and b.mov_dt = a.mov_dt - DATE(1)
and b.sur_cd = '0' )
and a.sur_cd != '0'
group by mov_dt
order by mov_dt
Essentially, I'm trying to find those items in my table that switched their sur_cd values from one day to the next.
Anyone have any ideas?
Thanks,
Jeff Tendam