I have a field in sql that contains a 1 or 0 at the end. What I am trying to do is if the field has a 1 at the end but no corresponding 0 I would like to add that record.
3 different examples
Field value
-
Data1 ( I would like to add another record containing Data0)
-
Data0 ( I would like to add another record containing Data1)
- Data0 and Data1 both exists in table ( Do nothing )
you can see test here
Updated for Oracle