Skip to content

Commit

Permalink
Sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
TexanInParis committed Jun 8, 2016
1 parent 097cd35 commit 39e1bd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Microsoft Access/Chapter 02/Listing 2.029.sql

This file was deleted.

12 changes: 6 additions & 6 deletions Microsoft SQL Server/Chapter 02/Listing 2.019.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GO

-- Listing 2.19 SQL for sample trigger to maintain computed value
CREATE TRIGGER updateOrdersOrderTotalsTrig
<<<<<<< HEAD
-- <<<<<<< HEAD
ON Orders AFTER INSERT, UPDATE, DELETE AS
BEGIN
UPDATE Orders
Expand All @@ -20,7 +20,7 @@ BEGIN
SELECT OrderNumber FROM deleted
UNION
SELECT OrderNumber FROM inserted
=======
-- =======
ON Order_Details AFTER INSERT, UPDATE, DELETE
AS
BEGIN
Expand All @@ -36,15 +36,15 @@ BEGIN
SELECT OrderNumber FROM deleted
UNION
SELECT OrderNumber FROM inserted
>>>>>>> origin/master
-- >>>>>>> origin/master
);
END;

<<<<<<< HEAD
-- <<<<<<< HEAD
DROP TRIGGER updateOrdersOrderTotalsTrig;
=======
-- =======

-- Run the following if you do not wish to keep the trigger in the database.
--DROP TRIGGER updateOrdersOrderTotalsTrig;
>>>>>>> origin/master
-- >>>>>>> origin/master

0 comments on commit 39e1bd6

Please sign in to comment.