Excel 到关系数据库 - Access 2007

发布于 2025-01-05 16:35:02 字数 395 浏览 1 评论 0原文

https://i.sstatic.net/ARbfh.jpg

所以我有一个大公寓我需要规范化的文件数据库。上图为患者病历的PK,文字为相关代码。我想把它做成一个连接表。文本代码是另一个表的主键,用文本表示它们的含义。

1 9654
1 7840
1 28260
1 4375
2 8409
2 etc.

正如您所看到的,我需要以 1 对 1 的方式在顶行为每个代码提供一个数字。我知道这可以不用这种蛮力方式来完成,什么是最好的?

常规平面文件的列为代码 1、2、3、4、5、6...20,当然对于许多患者来说,记录是空白的,解决此问题的最佳方法是什么?

https://i.sstatic.net/ARbfh.jpg

So I've got a large flat file database which I need to normalize. The pic above is the PK of a patient record, and the text are associated codes. I'm looking to make that into a junction table. The text codes are the primary keys of another table, with a text representation of what they mean.

1 9654
1 7840
1 28260
1 4375
2 8409
2 etc.

So as you can see I need a number in the top row for every code in a 1 to 1 manner. I know this can be done without this brute force way, what's the best?

The regular flat file has code 1, 2, 3, 4, 5, 6...20 as columns, and of course for many patients the records are blank, what's the best way to resolve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒眉千度 2025-01-12 16:35:02

您可以在 Excel 中使用 ADO,或者将 Excel 表链接到 Access,然后联合查询应该使您能够创建链接表。

You can use ADO in Excel, or link the Excel table to Access, after that a union query should enable you to create a link table.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文