SQL> select c_id from c_customer where c_credit='GC' and c_id<100;

      C_ID
----------
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
        11

      C_ID
----------
        12
        13
        14
        15
        16
        17
        18
        20
        21
        22
        23

      C_ID
----------
        24
        25
        26
        27
        29
        30
        31
        32
        33
        36
        37

      C_ID
----------
        38
        39
        40
        41
        42
        43
        44
        45
        47
        50
        51

      C_ID
----------
        52
        53
        55
        57
        58
        60
        61
        62
        63
        64
        65

      C_ID
----------
        66
        67
        68
        69
        70
        71
        72
        73
        74
        76
        77

      C_ID
----------
        78
        79
        80
        81
        82
        83
        84
        85
        86
        87
        88

      C_ID
----------
        90
        91
        92
        93
        94
        95
        96
        97
        98
        99

87 rows selected.

SQL> -- We choose customer id 90

----------------------------------------
APSERVER
----------------------------------------
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.ejbCreate(OrderCmpEJB.java:100)
: ejbCreate 
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.ejbCreate(OrderCmpEJB.java:108)
: Atomicity Test (1,2,3): Order Id: 929751
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.ejbCreate(OrderCmpEJB.java:128)
: Atomicity Test 3: OrderLineId: 1
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.getPriceWithDiscount(OrderCmpEJB.java:519)
: getPriceWithDiscount 
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.getPercentDiscount(OrderCmpEJB.java:590)
: getPercentDiscount
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.findCustomer(OrderCmpEJB.java:539)
: findCustomer
org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB at org.spec.jappserver.orders.orderent.ejb.OrderCmpEJB.checkCustomerCredit(OrderCmpEJB.java:567)
: checkCustomerCredit 
----------------------------------------

SQL> select*from o_orders where o_id=929751;

      O_ID     O_C_ID   O_OL_CNT O_DISCOUNT    O_TOTAL   O_STATUS O_ENTRY_D
---------- ---------- ---------- ---------- ---------- ---------- ---------
O_SHIP_DA
---------
    929751         90          1         .2   29268.83          1 20-FEB-03



SQL> select*from o_orderline where ol_o_id=929751;

     OL_ID    OL_O_ID OL_I_ID             OL_QTY  OL_STATUS OL_SHIP_D
---------- ---------- --------------- ---------- ---------- ---------
         1     929751 00001MITEM00001         90

SQL> spool off
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

C:\>





















































































































