This was an OK statement in SQL Server 7.0:
CREATE TRIGGER [TriggerNm] ON [Table1]
FOR INSERT, UPADATE
AS
UPDATE [Table1]
SET Table.Col1=(SELECT DISTINCT ColA FROM Table2
WHERE Table1.Col2=Table2.ColB),
Col3 = (SELECT DISTINCT ColX from Table3
WHERE Table1.Col4=Table3.ColY)
In SQL Server 2000, I get an error on the comma (,) at the end of line 6.
How do I write this in SQL Server 2000?
CREATE TRIGGER [TriggerNm] ON [Table1]
FOR INSERT, UPADATE
AS
UPDATE [Table1]
SET Table.Col1=(SELECT DISTINCT ColA FROM Table2
WHERE Table1.Col2=Table2.ColB),
Col3 = (SELECT DISTINCT ColX from Table3
WHERE Table1.Col4=Table3.ColY)
In SQL Server 2000, I get an error on the comma (,) at the end of line 6.
How do I write this in SQL Server 2000?