Closed dustymc closed 3 years ago
How do I find the UWYMV specimen that has a non-integer other IDNumber? Do I enter the code you used into the write SQL function on Arctos?
Yes the first statement
select guid from flat,coll_obj_other_id_num where flat.collection_object_id=coll_obj_other_id_num.collection_object_id and OTHER_ID_NUMBER!=round(OTHER_ID_NUMBER)
should find them, BUT -
1) I'm not sure you can do anything about it, this is probably just my parser being weird, and
2) I'm not sure you need to do anything about it, I just noticed because they fell out of some migration tool.
Is there some reason to limit these to INTEGER, or is NUMBER OK?
Not sure I have followed all this - did we decide that non-integer numbers are OK, not OK, OK in some circumstances, pros, cons? I understand that for catalog numbers, integers are highly recommended in order to allow Arctos to autoincrement the next number. Some documentation on this somewhere?
We only "decided" by nobody objecting to what was discovered during the migration (essentially, Oracle has looser datatypes than PG).
I can't imagine why anyone would want to autoincrement an identifier. (And autoincremeinting is maybe in the top 10 reasons to use integer catalog numbers, but "otherwise people will fail in building citations" is my usual concern.)
These may be OK as NUMERIC? They're not expected to count, and there's no NEXT() functionality. If not they need transferred and the parser needs updated.