我有疑问,在进入查询......需要帮助的访问查询
请告知是否有可能
我已经联系了Excel文件导入访问,其具有的某些列数..My疑问句是
为EG
为了取回笔记本电脑的说明书和地区栏,桌面表
我使用下面的查询
SELECT Laptop.[Description], Laptop.[Region] From Laptop
union SELECT Desktop.[Description], Desktop.[Region] From Desktop
有时..它可能不包含地区字段,在那个时候我使用“”作为笔记本电脑。[区域]或“”为桌面。[区域]
我的追求是
有没有这样的
SELECT Laptop.[Description], If Laptop.[Region]=avairable
then Laptop.[Region] else “” as [Region] from Laptop;
或任何方式错误跳过任何选项...
请帮我在这... Thx提前
的疑问:
要清楚
如果桌面表中有说明和区域列..
Description Region Saran east Sathish north sathy west
而且
笔记本电脑具有台式表中有描述和价格...
Description Cost asdf 23 dkasfjasd 34 flkasdf 55
Select Laptop.[Description], NZ(Laptop.[Region], "NA") as [Region]
from Laptop
UNION
SELECT Desktop.[Description], NZ(Desktop.[Region], "NA") as [Region]
FROM Desktop;
它会返回此结果吗?
,因为我有一些访问问题
Description Region asdf dkasfjasd flkasdf Saran east Sathish north sathy west
是纠正它,必须从桌面..我已经纠正了.. THX – 2012-02-16 05:12:23