我有一个这样的查询:此查询从T_Order_Header
获取数据select F_Exhibitor,F_Stand
from T_Order_Header
where F_Exhibition='12004'
output
--------
F_exhibitor F_stand
2477 C1
2488 C2
2489 C3
我有另一个这样的查询:这是从T_ExhibitorLocation
select F_ExhibitorCode,F_Stand
from T_ExhibitorLocation
where F_ExhibitionCode='12004'
output
--------
F_ExhibitorCode F_stand
2477 C1
2488 c2
2489 B1
T_order_header表F_Exhibitor和T_exhibtor位置F_ExhibitorCode是相同的。
我想比较两个表并检查任何没有改变的立场。如果任何立场没有改变,我想表明。
答案 0 :(得分:0)
试试这个
select toh.F_Exhibitor,toh.F_Stand
from T_Order_Header toh
INNER JOIN T_ExhibitorLocation tel
ON toh.F_exhibitor= tel.F_ExhibitorCode
WHERE toh.F_stand = tel.F_stand
AND toh.F_Exhibition='12004'
答案 1 :(得分:0)
如果要添加指示值是否相等或应该检查的计算列,您可以使用CASE,如下所示:
$('#checkboxId').click(function () {
//add code here
});