You are on page 1of 12

Programming & L3 Java API

Workshop-1
1.Create a template, EB.ONLINE.SHOPPING for defining the table properties.

2.Add the following fields to the table with the following properties:

Field Name Length Data Type Description

@ID 20 ID should begin with “OS”

Should have drop down


from Customer
CUSTOMER.NO Customer Application

Should have drop down


COUNTRY Alphanumeric from Country Application

REGISTER.DATE 11 Date

XX.ADDRESS 35 Alphanumeric

TYPE.OF.ONLINE.PORTAL Alphanumeric Should have dropdown as


Amazon,Flipkart and
Myntra

Should have option like


UPI,Cash on Delivery,
Credit Card,Debit
MODE.OF.CASH Card,NetBanking

CURRENCY Currency To be defaulted to USD.

REG.AMOUNT 18 Amount

ADDL.FEES 18 Amount

Should have drop down


from Account Application.
Should be inputtable if
Cash is selected in
ACCOUNT.NO Account MODE.OF.CASH

Should be inputtable if
Card is selected in
CARD.DETAILS Numeric MODE.OF.CASH

Should be inputtable if upi


is selected in
UPI.ID Alphanumeric MODE.OF.CASH

POINTS.EARNED 3 Numeric

TOT.AMOUNT 18 Amount
Validation on the fields:

Raise error in case the REGISTER.DATE is greater than today.

TOT.AMOUNT should be sum of REG.AMOUNT and ADDL.FEES.


3.Create an concat table EB.SHOPPING.POINT.EARNED with @ID as Customer ID and field
POINTS.EARNED in it.

This table to be updated on authorization of EB.ONLINE.SHOPPING table with the value of


POINTS.EARNED field.

You might also like