문제

I want to turn this

TableA.ColumnA(+)<2

into ANSI SQL.

I already tried:

(TableA.ColumnA<2 OR TableA.ColumnA IS NULL)

It missed one row. Despite the fact that its ColumnA is (null).

Edit (more context): Here is the query

SELECT * FROM a, c 
WHERE a.status(+)<2
AND a.rank(+)=1
AND c.id=a.id(+)
도움이 되었습니까?

해결책

give this a try

SELECT * FROM c LEFT JOIN a
ON c.id = a.id
AND a.status < 2
AND a.rank = 1
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top