本文介绍了涉及复合表的设计问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好: 我想知道我是否可以获得一些有关如何解决设计问题的建议 问题,涉及我的复合表。 我完成了项目的一部分。我将添加以下表格和 报告,捎带我现有的设计。 我已完成的部分允许我的用户创建设计 样本;这是由几种材料组成,以创建一个样本。我用这个设计完成了这个: tblMixDesign: DM_Mix(PK),DM_SampleNO,DM_Dt等 tblMaterial: materialID(PK),matTypeID(FK),material,materialGrav tblMixSample(复合表加入) tblMixdesign和tblMaterial) DM_Mix(PK1),DM_MaterialNo(PK2),matTypeID(FK),materialID(FK), matBatchWeight Mixdesign和tblMaterial都有一对多的关系 tblMixSample。 我的问题与我相信我需要加入的另一个表有关 到复合表,tblMixSample(当然是它的父表 tblMixDesign)。在我看来,表tblMCorrections与 复合表相关。用户在 tblMixSample中选择的材料与在tblMCorrections表中与它们相关的信息 的材料相同。 我的问题是,当我尝试连接表时,访问权限不会允许我连接主键。是因为复合表中有两个 主键? 这是tblMCorrections: correctionsID(PK) ,DM_Mix(FK),corr_Dt(日期),corr_wetGs, corr_dryGs,corr_absorption 此表与其他(MixDesign和MixSample)有关,因为 当材料类型(matTypeID)为精细或粗糙(在 tblMixsample中选择)时,测量这些材料的水分。 用户将输入他们测量材料重量的湿度, 干燥,以及吸收(所有用户输入,存储在 $中) b $ b tblMCorrections)。正如我所说,我试图将MCorrections链接到 MixSample,以便继续使用材质类型(精细和 Coarse),但由于无法这样做,访问不允许我 连接密钥。如果我不能连接键,我怎么能说明这种关系呢?Hello:I was wondering if I could get some input on how to address a designissue, involving my composite table.I have one portion of my project complete. The following forms andreports I will add, piggyback off of my existing design.The part I have already completed allows my users to create a designsample; this is made up of several materials to create one sample. Ihave accomplished this using this design:tblMixDesign:DM_Mix (PK), DM_SampleNO, DM_Dt, etctblMaterial:materialID (PK), matTypeID (FK), material, materialGravtblMixSample (composite table joining tblMixdesign and tblMaterial)DM_Mix (PK1), DM_MaterialNo (PK2), matTypeID (FK), materialID (FK),matBatchWeightboth Mixdesign and tblMaterial have a one to many relationship withtblMixSample.My question is related to another table I believe I will need to jointo the composite table, tblMixSample (an of course its parent tabletblMixDesign). The table, tblMCorrections, is related to thecomposite table in my opinion. The materials selected by the user inthe tblMixSample, are the same materials that will have informationrelated to them in the tblMCorrections table.My issue is that when I tried to connect the tables, access would notallow me to connect the primary keys. Is it because there are twoprimary keys in the composite table?Here is the tblMCorrections:correctionsID(PK), DM_Mix (FK), corr_Dt (Date), corr_wetGs,corr_dryGs, corr_absorptionThis table relates to the others (MixDesign and MixSample) becausewhen the material type (matTypeID) is Fine or Coarse (selected intblMixsample), these materials are measured for their moisture. theuser will enter how much they measure the material weight to be wet,dry, and also the absorption (all user inputs, stored in thetblMCorrections). As I stated i tried to link the MCorrections tothe MixSample, so as to carry over the material type (Fine andCoarse), but was unable to do so because access would not allow me toconnect the keys. How can I illustrate the relationship if I can notconnect the keys?推荐答案 这篇关于涉及复合表的设计问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-31 11:51