将多个选择查询组合在一个表或查询中

时间:2016-04-06 07:09:44

标签: ms-access-2007

你好,我有3个选择查询 我想组合这些查询并将结果放入不在行中的列中。 如果我使用union,它将以行显示输出 我不希望这些结果列在行中。 queries

1 个答案:

答案 0 :(得分:1)

您可以使用此骨架:

SELECT 
    Count(*) AS FirstCount,
    (Select Count(*) As SecondCount From SecondTable) AS SecondCount,
    (Select Count(*) As ThirdCount From ThirdTable) AS ThirdCount,
FROM 
    FirstTable;