SELECT distinct CAST(JSON_UNQUOTE(attributes_json->’.ClusterID′)ASchar)asoidFROM‘tcable‘whereattributesjson−>′.ClusterID') AS char) as oid FROM `t_cable` where attributes_json->'.ClusterID′)ASchar)asoidFROM‘tcable‘whereattributesjson−>′.ClusterID’ > ‘0307000074’;
#select * from t_cable c where [project_code]=‘TOMSerbia’;
SELECT distinct json_keys(attributes_json) as “keys” FROM t_cable;
SELECT distinct CAST(JSON_UNQUOTE(attributes_json->’.ClusterID′)ASchar)asoidFROM‘tcable‘;SELECTdistinctCAST(JSONUNQUOTE(attributesjson−>′.ClusterID') AS char) as oid FROM `t_cable`;
SELECT distinct CAST(JSON_UNQUOTE(attributes_json->'.ClusterID′)ASchar)asoidFROM‘tcable‘;SELECTdistinctCAST(JSONUNQUOTE(attributesjson−>′.ClusterID’) AS char) as oid FROM t_cable
where attributes_json->’$.ClusterID’ > ‘0307000074’;
select * from t_cable where attributes_json->’.EndID′=′0201000054′andattributesjson−>′.EndID' = '0201000054' and attributes_json->'.EndID′=′0201000054′andattributesjson−>′.ClusterID’ >= ‘0307000064’;
select * from t_cable where attributes_json->’.EndID′=′0201000054′andattributesjson−>′.EndID' = '0201000054' and attributes_json->'.EndID′=′0201000054′andattributesjson−>′.ClusterID’ >= ‘0307000064’;
SELECT COUNT(0) FROM t_cable WHERE project_code=‘TOMSerbia’ and attributes_json->’.EndID′=′0201000054′andattributesjson−>′.EndID'='0201000054' and attributes_json->'.EndID′=′0201000054′andattributesjson−>′.ClusterID’>=‘0307000064’;
SELECT distinct CAST(JSON_UNQUOTE(attributes_json->’.ClusterID′)ASchar)asoidFROM‘tcable‘;SELECTcount(distinctCAST(JSONUNQUOTE(attributesjson−>′.ClusterID') AS char) as oid FROM `t_cable`;
SELECT count(distinct CAST(JSON_UNQUOTE(attributes_json->'.ClusterID′)ASchar)asoidFROM‘tcable‘;SELECTcount(distinctCAST(JSONUNQUOTE(attributesjson−>′.ClusterID’) AS char)) as c FROM t_cable
where attributes_json->’.ClusterID′;SELECTcount(distinctJSONUNQUOTE(attributesjson−>′.ClusterID';
SELECT count(distinct JSON_UNQUOTE(attributes_json->'.ClusterID′;SELECTcount(distinctJSONUNQUOTE(attributesjson−>′.ClusterID’)) as c FROM t_cable
where attributes_json->’$.ClusterID’;