问题标签 [jet-sql]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
46 浏览

sql - 什么是与 a.key IS NULL 和 b.key IS NULL 的 FULL OUTER JOIN 等效的 MS Access SQL

我想在 MS Access SQL 中执行的示例查询

由于 MS Access SQL 不允许 FULL OUTER JOIN,我尝试使用下面的代码,但结果不正确。

有谁知道如何构建我试图执行的上面示例查询的 MS Access SQL 等效项?

0 投票
2 回答
34 浏览

sql - How to calculate the difference of two SELECTs in SQL (Access, JetSQL)

I need to get the difference of two SUM...WHERE queries from the same table join:

and

I've tried using UNION, but it returns two rows, not two columns I can make calculations on.

How do I go about doing it? I feel I am missing something trivial, so thanks in advance!