Hey all --
I've recently discovered a bug whereby no data is ever loaded into part of a data object which is subsequently written to the database. As this data is never loaded into that part of the object, our code sees "nulls" and changes those to "-1" to be written to the db. Again, this part of the object is put into a supplemental table, looked up by the "parent" record-id. So the only thing in this supplemental table appears to be "-1" in all 47 columns with the 48th column for the foreign key reference.
Can I construct a relatively simple SQL query which will return the id's of those rows which actually have something other than -1 in their fields?
(using Oracle if it matters...)
I've recently discovered a bug whereby no data is ever loaded into part of a data object which is subsequently written to the database. As this data is never loaded into that part of the object, our code sees "nulls" and changes those to "-1" to be written to the db. Again, this part of the object is put into a supplemental table, looked up by the "parent" record-id. So the only thing in this supplemental table appears to be "-1" in all 47 columns with the 48th column for the foreign key reference.
Can I construct a relatively simple SQL query which will return the id's of those rows which actually have something other than -1 in their fields?
(using Oracle if it matters...)