Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

pdf icons

Solutions To Hands On Exercises

1. mysql> use bank_db;

mysql> Create table customer_master(
cust_id Varchar(10) Primary Key,
cust_name Varchar(20),
date_created Date,
opening_balance Float(10,2)
);

2. mysql> use bank_db;

mysql> Create table customer_detail(
cust_id Varchar(10) Primary Key,
permanentaddr Varchar(35),
offaddr1 Varchar(35),
offaddr2 Varchar(35),
pincode Int(6),
landlineno Double,
mobileno Double,
offtelephone Double,
Foreign Key (cust_id) REFERENCES customer_master (cust_id)
);

3. mysql> use transaction_db;

mysql> Create table transaction_detail(
cust_id Varchar(10),
transaction_id Varchar(15) Primary Key,
name Varchar(15),
chequeno Int (10),
amount_deposit Float(10,2),
amount_withdrawn Float(10,2),
running_balance Float(10,2),
dated Date,
Foreign Key (cust_id) REFERENCES bank_db.customer_master(cust_id)
);

OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download
LinkShare_180x150
Artisteer - DNN Skin Generator
Tapestry Theme - A Tumblog-Style Theme for Wordpress