匹配两个不同数据库中的唯一 ID
我有两个不同的数据库,它们没有以任何方式连接。事实上,一个是公立学校数据库,一个是 hud(住房)数据库。根据法律,他们不得共享姓名和其他特定的识别地址。生日和地址都可以——还有邮政编码和其他更通用的 ID。用户需要能够查询其他数据库以获取非特定信息,因此看起来他们需要共享相同的唯一 ID。我正在考虑使用出生日期以及姓名首字母缩写或 ssn 的最后 4 位数字以及出生日期之类的事情。客户正在考虑全球定位数据,但我担心相邻的公寓或家庭的搬迁。有什么想法吗?
I have two different databases that are not connected in any way. In fact, one is a public school database and one is a hud (housing) database. By law they are not allowed to share names and other specific identifying addresses. Birthdates and addresses are okay - along with zip codes and other more general ids. The uses need to be able to query the other database to get non-specific information so it would appear that they need to share the same unique id. I was considering such things as using birthdates and perhaps initials of name or perhaps last 4 digits of ssn along with the birthdate. The client was thinking of global positioning data but I'm concerned about apartments next to one another or moving of families. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要确定衡量您的独特性的标准是什么。如果任一数据库中都有两个人具有多个用于衡量唯一性的条目,则您需要更改策略。之后,对两个数据库施加约束,约束这些属性(生日、SSN)使人员记录具有唯一性。
First you need to determine what will be your measure of uniqueness. If there are two people in either database with more than one entry for your measure of uniqueness, you need to change your strategy. After that, put a constraint on both databases constraining that these properties(Birthday, SSN) are what make a Person record unique.