Vous êtes sur la page 1sur 4

Case study for Oracle Reports

Case Study for Oracle Forms

ABC Service Station is a leading distributor of petrol/diesel in the city. This has got a number of corporate bodies as its clients. Due to increase in the clientele, ABC wants to computerize the petrol distribution system. You are entrusted with the responsibilities of developing a suitable system in ORACLE8 The project specifications are indicated below. You may change the specifications, if necessary. For every modification made you are to give the details of the changes made with reasons for modification. The general business flow is as follows: A customer master and the current price of petrol/diesel per ltr has to be maintained in the proposed system. Every morning, before distribution to customers start, a tanker supplies petrol/diesel and the quantity of oil received should be captured in the system. After that, depending on the stock available, oil is sold to customers and these transactions should be recorded in the system as and when they occur. The system should automatically update the available stock of oil as and when it increases or decreases. There should be a provision to generate and print customer bills for a specified period. Besides, there should also be a provision to generate a report showing the daily transaction list. Master Layout Need to create a report as per attached layout design. ABC SERVICE STATION - Generate Customer Bill (ABC040S) Customer Id: Address:

Pin Code: From Date: Date Petrol Qty To Date: Petrol Rate Diesel Qty Diesel Rate Amount

TOTAL
_____________________________________________________________________________________

Page 2 of 4

Case Study for Oracle Forms

Parameters : Parameter Name Customer Id Date from Date to Date to should be greater than date from. Associated tables for the report is Tables T_CUST (PK = CUST_ID) cust_id cust_name cust_add1 cust_add2 cust_add3 pin_code telephone cust_from cust_type introducer_id

Mandatory? Y N N

number (5) not null varchar2(30) varchar2 (30) varchar2 (30) varchar2 (30) number(6) number(7) date not null varchar2 (1) default I not null number(5) not null

T_STOCK (PK = DATE_OF_RECEIPT) date_of_receipt open_stock_petrol open_stock_diesel stock_rec_petrol stock_rec_diesel avail_stock_petrol avail_stock_diesel date not null number(5) not null number(5) not null number(5) not null number(5) not null number(5) not null number(5) not null

T_DAILY_TRANSACTION (PK = TRAN_DATE, CUST_ID) tran_date cust_id petrol_qty diesel_qty petrol_rate diesel_rate total_value date not null number(4) not null number(5) number(5) number(6,2) number(6,2) number(7,2) not null

_____________________________________________________________________________________

Page 3 of 4

Case Study for Oracle Forms

T_PRICE petrol_rate diesel_rate number(6,2) not null number(6,2) not null

(The data for this table can be entered through SQL*Plus or thru Forms)

_____________________________________________________________________________________

Page 4 of 4

Vous aimerez peut-être aussi