G
Guest
This has got to work but it isn't. When I run it, the 'select' result pops up but the records are not inserting into t_FamilyMailing. Can someone tell me why?
INSERT INTO t_FamilyMailing ( FamilyID, MailingID )
SELECT a.FamilyID, 2 AS Expr1
FROM t_Family AS a
WHERE a.Flag=-1;
In case you're wondering what the table layout looks like...
1) t_Family
FamilyID (pk)
Name
Flag
3) t_FamilyMailing
FamilyID (pk)
MailingID (pk)
INSERT INTO t_FamilyMailing ( FamilyID, MailingID )
SELECT a.FamilyID, 2 AS Expr1
FROM t_Family AS a
WHERE a.Flag=-1;
In case you're wondering what the table layout looks like...
1) t_Family
FamilyID (pk)
Name
Flag
3) t_FamilyMailing
FamilyID (pk)
MailingID (pk)