我有一个ms访问数据库,其中包含两个我关心的表。从表中的一个字段查询两个单独的字段
Table 1
...[field 1] "Name" text
...[field 2] "IDBorn" number
...[field 3] "IDDied" number
Table 2
...[field 1] "IDDate" number
...[field 2] "dtISO" text of date
“IDBorn” 和 “IDDied” 都与 “IDDate”
我的问题。我可以查询(在一个查询中)获得
...[field 1] "Name" text
...[field 2] "Born On" text of born on date
...[field 3] "Died On" text of died on date
我还没有能够获得成功的联合查询工作。这是要走的路吗?
为什么不将日期直接存储在数据库的'IDBorn'和'IDDied'列中 – bugwheels94
为什么你有日期文本?这是一个简单的格式问题。 – Fionnuala
UNION用于将行添加到现有表/数据集的底部。 JOIN用于将列添加到表/数据集。 – ClintB