
Originally Posted by
vigneshr35
But the Query that you have suggested does not provide me the result that I require.
the query he provided gives exactly the result set you said you wanted
here, you may borrow this code and test it for yourself --
Code:
CREATE TABLE table1
( f1 INTEGER
, f2 INTEGER
, f3 INTEGER
);
INSERT INTO table1 VALUES
( 2 , 3 , 4 )
,( 5 , 8 , 7 )
,( 11 , 13 , 15 )
;
CREATE TABLE table2
( f1 INTEGER
, f2 INTEGER
, f4 INTEGER
);
INSERT INTO table2 VALUES
( 2 , 3 , 6 )
,( 5 , 8 , 7 )
,( 11 , 13 , 17 )
;
SELECT table1.*
, table2.f4
FROM table1
LEFT OUTER
JOIN table2
ON table2.f1 = table1.f1
;
Bookmarks