You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although SSN in PERSON is declared as foreign key to INCOME, there are some records in PERSON whose SSNs don't reference the primary key in INCOME. This is possible because SQLite does not enforce foreign keys by default.
sqlite> select count(*) from person where ssn not in (select ssn from income);
2497
This caused quite a bit of mystery when I tried to port the game to another database.
Similarly, there are 5 persons whose LICENSE_ID is not found in DRIVERS_LICENSE:
select * from person where license_id not in (select id from drivers_license);
The text was updated successfully, but these errors were encountered:
Although SSN in PERSON is declared as foreign key to INCOME, there are some records in PERSON whose SSNs don't reference the primary key in INCOME. This is possible because SQLite does not enforce foreign keys by default.
This caused quite a bit of mystery when I tried to port the game to another database.
Similarly, there are 5 persons whose LICENSE_ID is not found in DRIVERS_LICENSE:
The text was updated successfully, but these errors were encountered: