J
Jawad
I cant seem to figure out why my full outer join query works fine in
Query Analyzer but its not returning all the data when i read the data
back from reader.
QUERY:
-------------
SELECT *
FROM (
(SELECT col1, col2 FROM table1 WHERE col1 LIKE
'STRING1') t1
FULL OUTER JOIN
(SELECT col1, col2 FROM table1 WHERE col1 LIKE
'STRING'2) t2
ON (t1.col1 = t2.col1)
)
WHERE t1.col1 = NULL
OR t2.col1 = NULL
OR t1.col2 <> t2.col2
Query Analyzer Result :
==================
COL1 COL2 COL1 COL2
NULL NULL data1 data2
data3 data4 NULL NULL
This looks great..but when i try to run this query in my code, nothing
comes back.
I tried using different queries...and they all seem to work as long as
there is no NULL involved.
Any one have any idea whats going on?? Thanks!
Query Analyzer but its not returning all the data when i read the data
back from reader.
QUERY:
-------------
SELECT *
FROM (
(SELECT col1, col2 FROM table1 WHERE col1 LIKE
'STRING1') t1
FULL OUTER JOIN
(SELECT col1, col2 FROM table1 WHERE col1 LIKE
'STRING'2) t2
ON (t1.col1 = t2.col1)
)
WHERE t1.col1 = NULL
OR t2.col1 = NULL
OR t1.col2 <> t2.col2
Query Analyzer Result :
==================
COL1 COL2 COL1 COL2
NULL NULL data1 data2
data3 data4 NULL NULL
This looks great..but when i try to run this query in my code, nothing
comes back.
I tried using different queries...and they all seem to work as long as
there is no NULL involved.
Any one have any idea whats going on?? Thanks!