Postgresql – SQL getting rows with a flag value without using functions
I have a following table I need to only select all the values with sensorfield1 flag = r and reject the rows with corresponding IDs with flag = h and select those values for IDs where flag value is only…