G
Guest
I have a table, Table3, set up with a default value of 0 in its [Value] (data
type =longint) field. The [Key] field in all tables is the primary key. I
execute the following query:
INSERT INTO Table3 ( [Key], [Value] )
SELECT Table1.Key, Table2.Value
FROM Table1 LEFT JOIN Table2 ON Table1.Key = Table2.Key;
Where there is no matching record in Table2, I expect Table3.Value=0
(default), but instead I get Null? Am I missing the point of a field default?
type =longint) field. The [Key] field in all tables is the primary key. I
execute the following query:
INSERT INTO Table3 ( [Key], [Value] )
SELECT Table1.Key, Table2.Value
FROM Table1 LEFT JOIN Table2 ON Table1.Key = Table2.Key;
Where there is no matching record in Table2, I expect Table3.Value=0
(default), but instead I get Null? Am I missing the point of a field default?