SlideShare a Scribd company logo
1 of 4
Download to read offline
Database System Sunita M. Dol
Page 1
HANDOUT#09
Aim:
Write a program to create a Data Dictionary.
Theory:
Data Dictionary
Relational Schema and other metadata about relations are stored in two structures called the data
dictionary or system catalog.
Among the types of information that the system must store are these:
1. Names of relations
2. Names of attributes of each relation
3. Domains and length of attributes
4. Names of views defined on database and definition of these views
5. Integrity Constraints
E-R Diagram for Banking Enterprise
Here are the major characteristics of the banking enterprise.
• The bank is organized into branches. Each branch is located in particular city and is
identified by a unique name. The bank monitors the assets of each branch.
• Bank customers are identified by their customer_id values. The bank store each
customer’s name and street and city where the customer lives. Customers may have
account and can take out the loans. A customer may be associated with a particular
banker who may act as a loan officer or personal banker for that customer.
• Bank employees are identified by their employee_id values. The bank administration
stores the name and the telephone number of each employee, the name of employee’s
dependents and employee_id number of employee’s manager. The bank also keeps track
of the employees’ start date and thus the length of employment.
• Bank offers two types of account- saving and checking account. Accounts can be held
by more than one customer and a customer can have more than one account. Each
account is assigned unique account number. The bank maintains a record of each
account’ balance and most recent date on which the account was accessed each customer
holding the account. Each saving account has an interest rate and overdrafts are recorded
for each checking account.
• The bank provides its customer with loans. A loan is originates at particular branch and
can be held by one or more customers. A loan is identified by a unique loan number. For
each loan, bank keeps track of the loan amount and the loan payment. Although a loan
payment number does not uniquely identify a particular payment among those for all
Database System Sunita M. Dol
Page 2
bank’s loan, a payment number does identify a particular payment for a specific loan.
The date and amount are recorded for each payment.
Data Dictionary for Banking Enterprise
The some set of relation schemas for above ER diagram is shown below:
• Schemas derived from a strong entity
branch = (branch-name, branch-city, assets)
branch
branch_name varchar(15) not null unique,
branch_city varchar(15) not null,
assets number not null,
primary key(branch_name)
Database System Sunita M. Dol
Page 3
customer = (customer-id, customer-name, customer-street, customer-city)
customer
customer_name varchar(15) not null unique,
customer_street varchar(12) not null,
customer_city varchar(15) not null,
primary key(customer_name)
loan = (loan-number, branch-name, amount)
loan
loan_number varchar(15) not null unique,
branch_name varchar(15) not null,
amount number not null,
primary key(loan_number)
account = (account-number, branch-name, balance)
account
account_number varchar(15) not null unique,
branch_name varchar(15) not null,
balance number not null,
primary key(account_number)
• Schemas derived from relationship sets involving strong entity sets
depositor = (customer-name, account-number)
depositor
customer_name varchar(15) not null,
account_number varchar(15) not null,
primary key(customer_name, account_number),
foreign key(account_number) references account(account_number),
foreign key(customer_name) references customer(customer_name)
borrower = (customer-name, loan-number)
borrower
customer_name varchar(15) not null,
loan_number varchar(15) not null,
primary key(customer_name, loan_number),
foreign key(customer_name) references customer(customer_name),
foreign key(loan_number) references loan(loan_number)
Database System Sunita M. Dol
Page 4
Program:
Input and Output:
Conclusion:
We implemented the program to create a Data Dictionary
References:
• Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan
(McGraw Hill International Edition) sixth edition.
• Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan
(McGraw Hill International Edition) fifth edition.
• http://codex.cs.yale.edu/avi/db-book/db4/slide-dir/
• http://codex.cs.yale.edu/avi/db-book/db5/slide-dir/
• http://codex.cs.yale.edu/avi/db-book/db6/slide-dir/

More Related Content

What's hot

Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
eidah20
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus
 

What's hot (20)

Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Chapter-9 Normalization
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 Normalization
 
Relational dbms
Relational dbmsRelational dbms
Relational dbms
 
Fundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and Answers
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Relational model
Relational modelRelational model
Relational model
 
Database - Normalization
Database - NormalizationDatabase - Normalization
Database - Normalization
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
 
The relational data model part[1]
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Year 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st TermYear 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st Term
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:
 
Lesson03 the relational model
Lesson03 the relational modelLesson03 the relational model
Lesson03 the relational model
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
Relational database
Relational  databaseRelational  database
Relational database
 
Relational model
Relational modelRelational model
Relational model
 
Dbms Interview Question And Answer
Dbms Interview Question And AnswerDbms Interview Question And Answer
Dbms Interview Question And Answer
 
DBMS Question bank
DBMS Question bankDBMS Question bank
DBMS Question bank
 

Similar to Assignment#09

Wind Turbine Fuzzy Logic Simulink Matalb Model.pdf
Wind Turbine Fuzzy Logic Simulink Matalb Model.pdfWind Turbine Fuzzy Logic Simulink Matalb Model.pdf
Wind Turbine Fuzzy Logic Simulink Matalb Model.pdf
Ibrar Hussain
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"
vivek kct
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
Hasan Khan
 
Syoncloud big data for retail banking, Syoncloud
Syoncloud big data for retail banking,  SyoncloudSyoncloud big data for retail banking,  Syoncloud
Syoncloud big data for retail banking, Syoncloud
Ladislav Urban
 

Similar to Assignment#09 (20)

MCW-Cash-Management-Demoss-Version3.pptx
MCW-Cash-Management-Demoss-Version3.pptxMCW-Cash-Management-Demoss-Version3.pptx
MCW-Cash-Management-Demoss-Version3.pptx
 
Banking Process in Oracle Fusion Bank ac
Banking Process in Oracle Fusion Bank acBanking Process in Oracle Fusion Bank ac
Banking Process in Oracle Fusion Bank ac
 
Credit Scoring Capstone Project- Pallavi Mohanty.pptx
Credit Scoring Capstone Project- Pallavi Mohanty.pptxCredit Scoring Capstone Project- Pallavi Mohanty.pptx
Credit Scoring Capstone Project- Pallavi Mohanty.pptx
 
project database 1 ALI Hassan 005.ppt
project database 1 ALI Hassan 005.pptproject database 1 ALI Hassan 005.ppt
project database 1 ALI Hassan 005.ppt
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
SRSTemplate (1).docx thi si for the studenst appearing for software engineering
SRSTemplate (1).docx thi si for the studenst appearing for software engineeringSRSTemplate (1).docx thi si for the studenst appearing for software engineering
SRSTemplate (1).docx thi si for the studenst appearing for software engineering
 
Wind Turbine Fuzzy Logic Simulink Matalb Model.pdf
Wind Turbine Fuzzy Logic Simulink Matalb Model.pdfWind Turbine Fuzzy Logic Simulink Matalb Model.pdf
Wind Turbine Fuzzy Logic Simulink Matalb Model.pdf
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Bank System
Bank SystemBank System
Bank System
 
Bank Management System
Bank Management System Bank Management System
Bank Management System
 
bankmanagementsystem-090428123925-phpapp01.pdf
bankmanagementsystem-090428123925-phpapp01.pdfbankmanagementsystem-090428123925-phpapp01.pdf
bankmanagementsystem-090428123925-phpapp01.pdf
 
Syoncloud big data for retail banking
Syoncloud big data for retail bankingSyoncloud big data for retail banking
Syoncloud big data for retail banking
 
Syoncloud big data for retail banking, Syoncloud
Syoncloud big data for retail banking,  SyoncloudSyoncloud big data for retail banking,  Syoncloud
Syoncloud big data for retail banking, Syoncloud
 
IRJET- Prediction of Credit Risks in Lending Bank Loans
IRJET- Prediction of Credit Risks in Lending Bank LoansIRJET- Prediction of Credit Risks in Lending Bank Loans
IRJET- Prediction of Credit Risks in Lending Bank Loans
 
2014 Gold Monitor Award Winners: Banking
2014 Gold Monitor Award Winners: Banking2014 Gold Monitor Award Winners: Banking
2014 Gold Monitor Award Winners: Banking
 
Artificially Intelligent Investment Risk Calculation system based on Distribu...
Artificially Intelligent Investment Risk Calculation system based on Distribu...Artificially Intelligent Investment Risk Calculation system based on Distribu...
Artificially Intelligent Investment Risk Calculation system based on Distribu...
 
D017612529
D017612529D017612529
D017612529
 
Bank management system
Bank management systemBank management system
Bank management system
 

More from Sunita Milind Dol

More from Sunita Milind Dol (20)

9.Joins.pdf
9.Joins.pdf9.Joins.pdf
9.Joins.pdf
 
8.Views.pdf
8.Views.pdf8.Views.pdf
8.Views.pdf
 
7. Nested Subqueries.pdf
7. Nested Subqueries.pdf7. Nested Subqueries.pdf
7. Nested Subqueries.pdf
 
6. Aggregate Functions.pdf
6. Aggregate Functions.pdf6. Aggregate Functions.pdf
6. Aggregate Functions.pdf
 
5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdf5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdf
 
4. DML.pdf
4. DML.pdf4. DML.pdf
4. DML.pdf
 
3. DDL.pdf
3. DDL.pdf3. DDL.pdf
3. DDL.pdf
 
2. SQL Introduction.pdf
2. SQL Introduction.pdf2. SQL Introduction.pdf
2. SQL Introduction.pdf
 
1. University Example.pdf
1. University Example.pdf1. University Example.pdf
1. University Example.pdf
 
Assignment12
Assignment12Assignment12
Assignment12
 
Assignment11
Assignment11Assignment11
Assignment11
 
Assignment10
Assignment10Assignment10
Assignment10
 
Assignment9
Assignment9Assignment9
Assignment9
 
Assignment8
Assignment8Assignment8
Assignment8
 
Assignment7
Assignment7Assignment7
Assignment7
 
Assignment6
Assignment6Assignment6
Assignment6
 
Assignment5
Assignment5Assignment5
Assignment5
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment3
Assignment3Assignment3
Assignment3
 
Assignment2
Assignment2Assignment2
Assignment2
 

Recently uploaded

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 

Assignment#09

  • 1. Database System Sunita M. Dol Page 1 HANDOUT#09 Aim: Write a program to create a Data Dictionary. Theory: Data Dictionary Relational Schema and other metadata about relations are stored in two structures called the data dictionary or system catalog. Among the types of information that the system must store are these: 1. Names of relations 2. Names of attributes of each relation 3. Domains and length of attributes 4. Names of views defined on database and definition of these views 5. Integrity Constraints E-R Diagram for Banking Enterprise Here are the major characteristics of the banking enterprise. • The bank is organized into branches. Each branch is located in particular city and is identified by a unique name. The bank monitors the assets of each branch. • Bank customers are identified by their customer_id values. The bank store each customer’s name and street and city where the customer lives. Customers may have account and can take out the loans. A customer may be associated with a particular banker who may act as a loan officer or personal banker for that customer. • Bank employees are identified by their employee_id values. The bank administration stores the name and the telephone number of each employee, the name of employee’s dependents and employee_id number of employee’s manager. The bank also keeps track of the employees’ start date and thus the length of employment. • Bank offers two types of account- saving and checking account. Accounts can be held by more than one customer and a customer can have more than one account. Each account is assigned unique account number. The bank maintains a record of each account’ balance and most recent date on which the account was accessed each customer holding the account. Each saving account has an interest rate and overdrafts are recorded for each checking account. • The bank provides its customer with loans. A loan is originates at particular branch and can be held by one or more customers. A loan is identified by a unique loan number. For each loan, bank keeps track of the loan amount and the loan payment. Although a loan payment number does not uniquely identify a particular payment among those for all
  • 2. Database System Sunita M. Dol Page 2 bank’s loan, a payment number does identify a particular payment for a specific loan. The date and amount are recorded for each payment. Data Dictionary for Banking Enterprise The some set of relation schemas for above ER diagram is shown below: • Schemas derived from a strong entity branch = (branch-name, branch-city, assets) branch branch_name varchar(15) not null unique, branch_city varchar(15) not null, assets number not null, primary key(branch_name)
  • 3. Database System Sunita M. Dol Page 3 customer = (customer-id, customer-name, customer-street, customer-city) customer customer_name varchar(15) not null unique, customer_street varchar(12) not null, customer_city varchar(15) not null, primary key(customer_name) loan = (loan-number, branch-name, amount) loan loan_number varchar(15) not null unique, branch_name varchar(15) not null, amount number not null, primary key(loan_number) account = (account-number, branch-name, balance) account account_number varchar(15) not null unique, branch_name varchar(15) not null, balance number not null, primary key(account_number) • Schemas derived from relationship sets involving strong entity sets depositor = (customer-name, account-number) depositor customer_name varchar(15) not null, account_number varchar(15) not null, primary key(customer_name, account_number), foreign key(account_number) references account(account_number), foreign key(customer_name) references customer(customer_name) borrower = (customer-name, loan-number) borrower customer_name varchar(15) not null, loan_number varchar(15) not null, primary key(customer_name, loan_number), foreign key(customer_name) references customer(customer_name), foreign key(loan_number) references loan(loan_number)
  • 4. Database System Sunita M. Dol Page 4 Program: Input and Output: Conclusion: We implemented the program to create a Data Dictionary References: • Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan (McGraw Hill International Edition) sixth edition. • Database system concepts by Abraham Silberschatz, Henry F. Korth, S. Sudarshan (McGraw Hill International Edition) fifth edition. • http://codex.cs.yale.edu/avi/db-book/db4/slide-dir/ • http://codex.cs.yale.edu/avi/db-book/db5/slide-dir/ • http://codex.cs.yale.edu/avi/db-book/db6/slide-dir/