sql server - TSQL Two cursors in row by row comparision -


i have got 2 views data. compare string column in first view every string in column in other view/table. need insert result comparison other table.

at moment using 2 cursors forward only, going row row through both views/tables , inserting result. slow me. there other possibility double loop ( don't have index in second view) 2 cursors?

i think can use cross join

insert resulttable select a.column1 - b.column2 comparison table1 cross join table2 b; 

cursors extremely slow


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -