You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selecttrim(s.perm_Table_name) as table , substring(trim(info),1,580) as filter, sum(datediff(seconds,starttime,case when starttime > endtime then starttime else endtime end)) as secs, count(distinct i.query) as num, max(i.query) as query
from stl_explain p
join stl_plan_info i on ( i.userid=p.useridandi.query=p.queryandi.nodeid=p.nodeid )
join stl_scan s on (s.userid=i.useridands.query=i.queryands.segment=i.segmentands.step=i.step)
wheres.starttime> dateadd(day, -7, current_Date)
ands.perm_table_name not like'Internal Worktable%'
and (( p.infolike'Filter:%'andp.nodeid>0 ) orp.infolike'Join Filter:%')
ands.perm_table_namelike'%'-- choose table(s) to look for