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)
 Create a trigger on one table that updates a field on an other table

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-25 : 12:11:05
Chris writes "I have a REQUEST table that holds global information about a request. I also have a table the hold specific information about the sub-requests for the request in the REQUEST table.










Request Table:
requestIDCustIDCustNameCustNumberRequestStatus
ABC-1234545039ChrisH555-1234










Sub-Request Table:
RequestIDSub-RequestIDServiceTypeServiceStatus
ABC-12345452Open
ABC-12345461Closed
ABC-123454825Assigned

What I need is a trigger on SUB-REQUEST that updates REQUEST.RequestStatus what "See Details" if related sub-requests ServiceStatus's are different and if they are the same then put that ServiceStatus in REQUEST.RequestStatus
"
   

- Advertisement -