0% found this document useful (0 votes)
418 views2 pages

Tibco Vodafone Project

The document creates 3 tables - VODAFONE_REGISTERED_USERS to store user credentials, VODAFONE_BILLING_SYS to store billing details of mobile users, and CREDIT_SYS to store credit card details. It inserts sample data into these tables and creates a procedure GET_MOBILE_BILL_AMOUNT to retrieve the bill amount for a given mobile number. It then selects data from the CREDIT_SYS table and finally drops all 3 tables.

Uploaded by

cooleyes444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
418 views2 pages

Tibco Vodafone Project

The document creates 3 tables - VODAFONE_REGISTERED_USERS to store user credentials, VODAFONE_BILLING_SYS to store billing details of mobile users, and CREDIT_SYS to store credit card details. It inserts sample data into these tables and creates a procedure GET_MOBILE_BILL_AMOUNT to retrieve the bill amount for a given mobile number. It then selects data from the CREDIT_SYS table and finally drops all 3 tables.

Uploaded by

cooleyes444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

CREATE TABLE VODAFONE_REGISTERED_USERS ( USERNAME VARCHAR2(25), PASSWORD VARCHAR2(20) ); INSERT INTO VODAFONE_REGISTERED_USERS VALUES('[email protected]','SAKET123'); INSERT INTO VODAFONE_REGISTERED_USERS VALUES('SONAM@LIVE.

COM','SONAM007'); CREATE TABLE VODAFONE_BILLING_SYS ( MOBILE_NO VARCHAR2(15), BILL_AMOUNT NUMBER(9,1), DUE_STATUS VARCHAR2(10), CLEARED_ON VARCHAR2(60) ); INSERT INTO VODAFONE_BILLING_SYS VALUES('9000512345',25000,'DUE','NOT_SET'); INSERT INTO VODAFONE_BILLING_SYS VALUES('9000588889',45000,'DUE','NOT_SET'); CREATE TABLE CREDIT_SYS ( CC_NUMBER VARCHAR2(22), AMOUNT_USED NUMBER(15,2), MAX_LIMIT NUMBER(15,2), STATUS VARCHAR2(20), EXPIRY_DATE VARCHAR2(20) ); INSERT INTO CREDIT_SYS VALUES('111-1111-11111',60000,80000,'OPEN','22-07-2012'); INSERT INTO CREDIT_SYS VALUES('222-2222-22222',60000,80000,'EXPIRED','22-07-2012 '); INSERT INTO CREDIT_SYS VALUES('333-3333-33333',20000,80000,'OPEN','22-07-2012'); COMMIT; CREATE OR REPLACE PROCEDURE GET_MOBILE_BILL_AMOUNT ( V_MOBILE_NO IN VODAFONE_BILLING_SYS.MOBILE_NO%TYPE, V_MOBILE_AMOUNT OUT VODAFONE_BILLING_SYS.BILL_AMOUNT%TYPE ) AS BEGIN SELECT BILL_AMOUNT INTO V_MOBILE_AMOUNT FROM VODAFONE_BILLING_SYS WHERE MOBILE_NO=V_MOBILE_NO; END GET_MOBILE_BILL_AMOUNT; / ........................................................... XTRA SET LINESIZE 200 SELECT*FROM CREDIT_SYS; DROP TABLE VODAFONE_REGISTERED_USERS DROP TABLE VODAFONE_BILLING_SYS DROP TABLE CREDIT_SYS

You might also like