English 中文(简体)
管理系统 出入新领域
原标题:MS Access Joins to create a new field

我在Microsoft Access上有三个表格。

我曾问,如果表2中某个名字的测量表2中的“低调”,则需要利用表3建立一个“Flag”领域。

Eg.

Measures            Names                     AllowedTypes
-------             -------                   -------
UniqueVal ------->  UniqueVal (PK)  /------>  Name
Measurement         Name -----------    --->  AllowedType
MeasurementType -----------------------/      ID (PK)                    

我的“Merge”问题说:

SELECT Measures.UniqueVal, Measures.Measurement, Measures.MeasurementType, Names,Name
FROM Measures JOIN Names on Measures.UniqueVal = Names.UniqueVal

但是,如果在允许的Types(可能有一个以上允许的类型)中,这种名称的测量仪表象就有必要添加一个“Flag Field”。 我尝试像上面描述的一样做事,但我“不能允许”和其他这种不知。 我只能想出我走出这一牌子。 想法?

最佳回答

查阅数据库的引擎要求你明确告诉它,你想要的是哪类日本宇宙航行网:INNER JOIN;LEFT JOIN;Rright JOIN。

你的实地名单也错了 com。

我的猜测是,这种怀疑更接近你想要的东西:

SELECT Measures.UniqueVal, Measures.Measurement, Measures.MeasurementType, Names.[Name]
FROM Measures INNER JOIN Names on Measures.UniqueVal = Names.UniqueVal
问题回答

暂无回答




相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签