Microsoft Query 的子查询语法是什么?
我正在尝试在 Microsoft Query 中执行简单的子查询连接,但我无法弄清楚语法。我也找不到任何语法文档。
如何在 Microsoft Query 中编写以下查询?
SELECT *
FROM (
SELECT Col1, Col2
FROM `C:\Book1.xlsx`.`Sheet1$`
) AS a
JOIN (
SELECT Col1, Col3
FROM `C:\Book1.xlsx`.`Sheet1$`
) AS b
ON a.Col1 = b.Col1
Microsoft Query 有官方文档吗?
I am trying to do a simple subquery join in Microsoft Query, but I cannot figure out the syntax. I also cannot find any documentation for the syntax.
How would I write the following query in Microsoft Query?
SELECT *
FROM (
SELECT Col1, Col2
FROM `C:\Book1.xlsx`.`Sheet1I am trying to do a simple subquery join in Microsoft Query, but I cannot figure out the syntax. I also cannot find any documentation for the syntax.
How would I write the following query in Microsoft Query?
) AS a
JOIN (
SELECT Col1, Col3
FROM `C:\Book1.xlsx`.`Sheet1I am trying to do a simple subquery join in Microsoft Query, but I cannot figure out the syntax. I also cannot find any documentation for the syntax.
How would I write the following query in Microsoft Query?
) AS b
ON a.Col1 = b.Col1
Is there official documentation for Microsoft Query?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这对我有用。看起来唯一的区别是 INNER JOIN 与 JOIN。我的字段是 ID、公司、名称(按 Col1、Col2、Col3 的顺序)。
That worked for me. It looks like the only difference is INNER JOIN vs. JOIN. My fields are ID, Company, Name in that order for Col1, Col2, Col3.
按照 Excel 查询向导创建/编辑查询。
您可以从 Excel 菜单访问它:数据 -> 导入外部数据 -> 导入数据
您也可以检查此链接
http://www.exceluser.com/explore/msquery1_1.htm
Follow Excel the Query Wizard to create/edit queries.
You can access it from Excel menu: Data->Import External Data->Import Data
As well you can check this link
http://www.exceluser.com/explore/msquery1_1.htm