I have a database that somehow got corrupted in the following way:
A record in table A has a value in a foreign key column pointing to table B, but no such record exists in B.
The db was created in h2 version 1.3.152 and I recovered it with 1.3.170 (latest at the moment of this post).
Its also strange that the recover tool didn't complain about this (but the problem was not solved)
Any ideas of why/how this happened?
Any ideas of how to recover?
Actual example:
select * from punto where punto_id = 3309; --> does not return anything
select * from tramo where caseta_punto_id = 3309; --> returns 1 record
punto.punto_id references tramo.caseta_punto_id
You can download a copy of the database here.
Thanks.