I have the following data that contains 2 different TBL_ID - 337448 and 8612
"TBL_ID","PARAM_KEY","PARAM_VALUE"
337448,"comment","CHANGE DUE"
337448,"transient_lastDdlTime","1505760292"
8612,"COLUMN_STATS_ACCURATE","true"
8612,"numFiles","1"
8612,"numRows","5294"
8612,"rawDataSize","-1"
8612,"totalSize","113217"
8612,"transient_lastDdlTime","1452191300"
I need to query all TBL_ID that do not contain "numRows" What I have tried:
SELECT * FROM TABLE_PARAMS
WHERE PARAM_KEY NOT IN ('numRows')
The results:
"TBL_ID","PARAM_KEY","PARAM_VALUE"
337448,"comment","CHANGE DUE"
337448,"transient_lastDdlTime","1505760292"
8612,"COLUMN_STATS_ACCURATE","true"
8612,"numFiles","1"
8612,"rawDataSize","-1"
8612,"totalSize","113217"
8612,"transient_lastDdlTime","1452191300"
It did remove the column with numRows but I need to remove the whole TBL_ID (8612)