HP Neoview SQL Reference Manual page 55

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

----------
--------------
100210
100250
101220
200300
200320
200490
.
.
.
--- 13 row(s) selected.
Order/Num
Part/Num
----------
--------
100210
100210
100210
100210
100250
100250
.
.
.
--- 70 row(s) selected.
--- SQL operation complete.
For more information about using SPJ result sets, see the Neoview Guide to Stored Procedures
in Java.
This trigger contains a CALL statement, which executes an SPJ named LOWERPRICE. An
SPJ in a trigger must not have any OUT or INOUT parameters.
CREATE TRIGGER sales.setsalesprice
AFTER UPDATE OF qty_on_hand
ON invent.partloc
FOR EACH STATEMENT
REFERENCING NEW as newqty
WHEN ( SUM(newqty.qty_on_hand) > 500 )
CALL sales.lowerprice();
For more examples, see the Neoview Guide to Stored Procedures in Java.
---------------
4
19020.00
4
22625.00
4
45525.00
3
52000.00
4
2
Unit/Price
------------
2001
1100.00
2403
620.00
244
3500.00
5100
150.00
6500
95.00
6301
245.00
----------
2006-04-10
2006-01-23
2006-07-21
2006-02-06
9195.00
2006-02-17
1065.00
2006-03-19
Qty/Ord
Part Description
----------
------------------
3
GRAPHIC PRINTER,M1
6
DAISY PRINTER,T2
3
PC GOLD, 30 MB
10
MONITOR BW, TYPE 1
10
DISK CONTROLLER
15
GRAPHIC CARD, HR
------------------
HUGHES
HUGHES
SCHNABL
SCHAEFFER
KARAJAN
WEIGL
CALL Statement
55

Advertisement

Table of Contents
loading

Table of Contents