Skip to content

Commit 8750d01

Browse files
committed
finished question 3
1 parent b30473b commit 8750d01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CSE 111/Lab 10/test/3.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ drop trigger if exists t3;
22

33
create trigger t3 after update on customer
44
begin
5-
update customer
6-
set c_comment = "Positive balance"
7-
where NEW.c_acctbal > 0
8-
and OLD.c_acctbal < 0;
5+
update customer
6+
set c_comment = "Positive balance"
7+
where NEW.c_acctbal > 0
8+
and OLD.c_acctbal < 0;
99
end;
1010

1111
update customer set c_acctbal = 100

0 commit comments

Comments
 (0)