Subject | Sub select paramerter with null value problem |
---|---|
Author | jasajona |
Post date | 2005-06-29T09:02:12Z |
Hello,
I just found out that some of my query work wrong. This is query example:
SELECT
A.Field1,
sum(A.Field2),
(SELECT sum(B.Field2) FROM B WHERE B.Field1 = A.Field1)
FROM A
GROUP BY A.Field1
When A.Field1 get value NULL and sets it to subselect query, subselect query do not
work correctly (allways returning null result). How to solve this problem?
I just found out that some of my query work wrong. This is query example:
SELECT
A.Field1,
sum(A.Field2),
(SELECT sum(B.Field2) FROM B WHERE B.Field1 = A.Field1)
FROM A
GROUP BY A.Field1
When A.Field1 get value NULL and sets it to subselect query, subselect query do not
work correctly (allways returning null result). How to solve this problem?