Skip to content

Commit

Permalink
add Region table to alldata.sql and truncate.sql, and wrap in a trans…
Browse files Browse the repository at this point in the history
…action (i think).

#5
  • Loading branch information
tsahi committed Feb 15, 2020
1 parent 519dafb commit fa181b2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Insert Into Region Values (1,'Eastern');
Insert Into Region Values (2,'Western');
Insert Into Region Values (3,'Northern');
Insert Into Region Values (4,'Southern');
BEGIN
INSERT INTO Region VALUES (1,'Eastern');
INSERT INTO Region VALUES (2,'Western');
INSERT INTO Region VALUES (3,'Northern');
INSERT INTO Region VALUES (4,'Southern');
COMMIT;
END;
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,12 @@ Insert into PRODUCTS (PRODUCTID, PRODUCTNAME, CATEGORYID, UNITPRICE, LASTUPDATE)
Insert into PRODUCTS (PRODUCTID, PRODUCTNAME, CATEGORYID, UNITPRICE, LASTUPDATE) Values (4, 'Product4', 3, 55,NULL);
Insert into PRODUCTS (PRODUCTID, PRODUCTNAME, CATEGORYID, UNITPRICE, LASTUPDATE) Values (5, 'Product5', 3, 15,NULL);
COMMIT;


BEGIN
INSERT INTO Region VALUES (1,'Eastern');
INSERT INTO Region VALUES (2,'Western');
INSERT INTO Region VALUES (3,'Northern');
INSERT INTO Region VALUES (4,'Southern');
COMMIT;
END;
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ commit;
truncate table simpledatatype;
commit;
truncate table debits;
commit;
commit;
TRUNCATE TABLE Region;
COMMIT;

0 comments on commit fa181b2

Please sign in to comment.