Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select @valueold=symbol from sec where rating_id=(select ratingid from deleted)
select @valuenew=symbol from sec where rating_id=(select ratingid from inserted)
insert into audit(@valueold,@valuenew)
select @valueold=symbol from sec where rating_id=(select ratingid from deleted)
select @valuenew=symbol from sec where rating_id=(select ratingid from inserted)
insert into audit
SELECT ValueOld,
ValueNew
FROM (SELECT Ins.ratingid,
Del.symbol AS ValueOld,
Ins.symbol AS ValueNew
FROM Inserted Ins
INNER JOIN Deleted Del ON
Ins.ratingid = Del.ratingid) Tbl1