我写了一个选择表达式。这显示了根据植物的记录列表。 Sql表达式如下:
select w.RN, w.x, w.y, w.T, ws.z, ws1.k
FROM Table1 w
FULL OUTER JOIN Table2 ws ON w.a = ws.ID
FULL OUTER JOIN Table2 AS ws1 ON w.b = ws1.ID
WHERE (w.CONFIRMED = 0)
GROUP BY w.FIRMRN, w.RN, w.x, w.y, w.T, ws.z, ws1.k
HAVING (w.FIRMRN = {0})
order by w.x asc, w.T desc
在有了子句时,w.FIRMRN会在服务器上捕获Session。很少,列表中会显示另外一种植物的记录。为什么呢?