Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Trigger

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-02-08 : 09:49:01
Anto writes "I have a table called DATA1 with 3 fields : ID, Description, OwnerID ...
DATA1 contains data :
ROOT, TopMostData, NULL
A, Data A, ROOT
B, Data B, ROOT
A1, Data A1, A
A2, Data A2, A
A1-1, Data A1-1, A1

how to create trigger for this condition :
if i DELETE DATA1 WHERE ID = 'A' then automatically will delete DATA1 where ID = A, A1 and A1-1

thanks"
   

- Advertisement -