I have two tables temp and md respectively. There is a field called uri_stem which has certain details that I want to omit from temp but not from md. I need to make a comparison that is able to compare certain patterns and remove them from temp if there are similar patterns in md.
Right now I am using this code to remove data similar to the patterns I want to omit, but I want some method that is able to compare the patterns from the md table rather than me hardcording each one. Hope the explanation is clear enough.
FROM spfmtr01.tbl_1c_apps_log_temp where uri_stem not like '%.js' and uri_stem not like '%.css' and uri_stem not like '%.gif' and uri_stem not like '%.png' and uri_stem not like '%.html' and uri_stem not like '%.jpg' and uri_stem not like '%.jpeg' and uri_stem not like '%.ico' and uri_stem not like '%.htm' and uri_stem not like '%.pdf' and uri_stem not like '%.Png' and uri_stem not like '%.PNG'