add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE test_tbl(
id INT,
data json );

insert into test_tbl values
(1,'{"field1": "123432", "field2":"TEST", "field3": "", "field4": "JAMES"}'),
(2,'{"field1": "123432", "field2":"TEST", "field3": "TEST", "field4": "JAMES"}');



select JSON_UNQUOTE(JSON_EXTRACT(data, '$.field3'))
from test_tbl
where JSON_UNQUOTE(JSON_EXTRACT(data, '$.field3')) !='' ;
JSON_UNQUOTE(JSON_EXTRACT(data, '$.field3'))
TEST