javascript - Find instance of a pattern in SQLITE that excludes another pattern -


i have database following schema:

id                               vendor 1                                ab "vendor":"0089900" acx 2                                cd "vendor":"0089900" "vendor":"0089700" xca 3                                cd "vendor":"0012300" sda 4                                ad "vendor":"0089900" sd "vendor":"0089901" fdfd 5                                adc "vendor":"0089900" "vendor":"0012345" dasd 

the "vendor" column contains strings various amount of key value pairs. json response contained within string.

my constraints must use sqlite queries generate results following conditions:

if there occurrences of vendors pattern of "vendor":"xx899xx" , pattern "vendor":"xxxxxxx" iterations, return row.

in above example, valid rows returned be:

id                               vendor 1                                ab "vendor":"0089900" acx 4                                ad "vendor":"0089900" sd "vendor":"0089901" fdfd 

row 2 , row 5 should not return, due other occurrence of vendor key value pairs contained invalid patterns. ("vendor":"0089700" , "vendor":"0012345")

is problem solvable using query? have tried various rendition of queries , glob statements, haven't had luck.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -