Hi,
I am quiet new with SQL server programming, and I am not familiar with building up triggers and so on.
I have a couple of questions:
A couple of days ago I got a wery helpful tips from "Terry L. Broadbent" with this SQL syntax:
Update pr Set [Transaction Price] = pl.[Costing sum 1]
From Production pr
Join Pricelist pl
On pr.Company = pl.Company
And pr.Facility = pl.Facility
And pr.[Component number] = pl.[Item number]
And pr.[Start date] BETWEEN pl.[Costing date from] AND pl.[Costing date to]
So my first question is:
Is it possible to build a Trigger that executes this Syntax when my production table is updated? And can anyone of you give me an simple example of how this trigger will look like?
My second question is:
Is it possible to execute two or moore update-syntaxes in just one trigger?
Anyone out there wuo can give me a tips about this?
Best regards Stig
I am quiet new with SQL server programming, and I am not familiar with building up triggers and so on.
I have a couple of questions:
A couple of days ago I got a wery helpful tips from "Terry L. Broadbent" with this SQL syntax:
Update pr Set [Transaction Price] = pl.[Costing sum 1]
From Production pr
Join Pricelist pl
On pr.Company = pl.Company
And pr.Facility = pl.Facility
And pr.[Component number] = pl.[Item number]
And pr.[Start date] BETWEEN pl.[Costing date from] AND pl.[Costing date to]
So my first question is:
Is it possible to build a Trigger that executes this Syntax when my production table is updated? And can anyone of you give me an simple example of how this trigger will look like?
My second question is:
Is it possible to execute two or moore update-syntaxes in just one trigger?
Anyone out there wuo can give me a tips about this?
Best regards Stig