Assignment#09

S
Sunita Milind DolAssistant Professor um Walchand Institute of Technology, Solapur

Write a program to create a Data Dictionary.

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/

Recomendados

Assignment#03 von
Assignment#03Assignment#03
Assignment#03Sunita Milind Dol
1.5K views7 Folien
5. Other Relational Languages in DBMS von
5. Other Relational Languages in DBMS5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMSkoolkampus
2.3K views72 Folien
chapter2 Relational Model von
  chapter2  Relational Model  chapter2  Relational Model
chapter2 Relational ModelMrsGAmudhaIT
28 views15 Folien
Chapter-8 Relational Database Design von
Chapter-8 Relational Database DesignChapter-8 Relational Database Design
Chapter-8 Relational Database DesignKunal Anand
145 views48 Folien
Chapter-5 The Relational Data Model von
Chapter-5 The Relational Data ModelChapter-5 The Relational Data Model
Chapter-5 The Relational Data ModelKunal Anand
109 views50 Folien
Relational database intro for marketers von
Relational database intro for marketersRelational database intro for marketers
Relational database intro for marketersSteve Finlay
949 views15 Folien

Más contenido relacionado

Was ist angesagt?

Database : Relational Data Model von
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data ModelSmriti Jain
15.3K views25 Folien
Chapter-9 Normalization von
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 NormalizationKunal Anand
97 views51 Folien
Relational dbms von
Relational dbmsRelational dbms
Relational dbmsBathshebaparimala
47 views18 Folien
Fundamentals of Database Systems Questions and Answers von
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and AnswersAbdul Rahman Sherzad
20.8K views6 Folien
Fundamentals of database system - Relational data model and relational datab... von
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...Mustafa Kamel Mohammadi
2.5K views28 Folien
Relational model von
Relational modelRelational model
Relational modelWBUTTUTORIALS
2.3K views20 Folien

Was ist angesagt?(20)

Database : Relational Data Model von Smriti Jain
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain15.3K views
Chapter-9 Normalization von Kunal Anand
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 Normalization
Kunal Anand97 views
Fundamentals of Database Systems Questions and Answers von Abdul Rahman Sherzad
Fundamentals of Database Systems Questions and AnswersFundamentals of Database Systems Questions and Answers
Fundamentals of Database Systems Questions and Answers
Abdul Rahman Sherzad20.8K views
Fundamentals of database system - Relational data model and relational datab... von Mustafa Kamel Mohammadi
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...
Database - Normalization von Mudasir Qazi
Database - NormalizationDatabase - Normalization
Database - Normalization
Mudasir Qazi3.1K views
Chapter3 the relational data model and the relation database constraints part2 von eidah20
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
eidah201.3K views
The relational data model part[1] von Bashir Rezaie
The relational data model part[1]The relational data model part[1]
The relational data model part[1]
Bashir Rezaie2.1K views
Relational Data Model Introduction von Nishant Munjal
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
Nishant Munjal13.5K views
CSI2132: Database I – Assignment 3: von DeanMurphys
CSI2132: Database I – Assignment 3:CSI2132: Database I – Assignment 3:
CSI2132: Database I – Assignment 3:
DeanMurphys134 views
3. Relational Models in DBMS von koolkampus
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
koolkampus21.8K views
Relational database von amkrisha
Relational  databaseRelational  database
Relational database
amkrisha1.2K views
DBMS Question bank von Sara Sahu
DBMS Question bankDBMS Question bank
DBMS Question bank
Sara Sahu1.3K views

Similar a Assignment#09

project database 1 ALI Hassan 005.ppt von
project database 1 ALI Hassan 005.pptproject database 1 ALI Hassan 005.ppt
project database 1 ALI Hassan 005.pptAHSANMUNEEB2
20 views30 Folien
Bank Management System von
Bank Management SystemBank Management System
Bank Management SystemA-Tech and Software Development
2K views23 Folien
"Bank management system" von
"Bank management system""Bank management system"
"Bank management system"vivek kct
8.9K views23 Folien
Bank Management System von
Bank Management SystemBank Management System
Bank Management SystemVinoth Ratnam Sudalaimuthu
186.7K views23 Folien
Bank Management System von
Bank Management SystemBank Management System
Bank Management SystemHasan Khan
2.9K views22 Folien
Bank System von
Bank SystemBank System
Bank SystemA-Tech and Software Development
466 views40 Folien

Similar a Assignment#09(20)

project database 1 ALI Hassan 005.ppt von AHSANMUNEEB2
project database 1 ALI Hassan 005.pptproject database 1 ALI Hassan 005.ppt
project database 1 ALI Hassan 005.ppt
AHSANMUNEEB220 views
"Bank management system" von vivek kct
"Bank management system""Bank management system"
"Bank management system"
vivek kct8.9K views
Bank Management System von Hasan Khan
Bank Management SystemBank Management System
Bank Management System
Hasan Khan2.9K views
bankmanagementsystem-090428123925-phpapp01.pdf von AnkitShrestha37
bankmanagementsystem-090428123925-phpapp01.pdfbankmanagementsystem-090428123925-phpapp01.pdf
bankmanagementsystem-090428123925-phpapp01.pdf
AnkitShrestha3727 views
Syoncloud big data for retail banking, Syoncloud von Ladislav Urban
Syoncloud big data for retail banking,  SyoncloudSyoncloud big data for retail banking,  Syoncloud
Syoncloud big data for retail banking, Syoncloud
Ladislav Urban7.6K views
Syoncloud big data for retail banking von Syoncloud
Syoncloud big data for retail bankingSyoncloud big data for retail banking
Syoncloud big data for retail banking
Syoncloud265 views
IRJET- Prediction of Credit Risks in Lending Bank Loans von IRJET Journal
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
IRJET Journal87 views
Artificially Intelligent Investment Risk Calculation system based on Distribu... von iosrjce
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...
iosrjce298 views
Mysql classes in navi-mumbai,mysql course-provider-in-navi-mumbai von anshkhurana01
Mysql classes in navi-mumbai,mysql course-provider-in-navi-mumbaiMysql classes in navi-mumbai,mysql course-provider-in-navi-mumbai
Mysql classes in navi-mumbai,mysql course-provider-in-navi-mumbai
anshkhurana01465 views
Gaurav _Java_Resume 2-6yrs von Gaurav Patel
Gaurav _Java_Resume 2-6yrsGaurav _Java_Resume 2-6yrs
Gaurav _Java_Resume 2-6yrs
Gaurav Patel183 views

Más de Sunita Milind Dol

9.Joins.pdf von
9.Joins.pdf9.Joins.pdf
9.Joins.pdfSunita Milind Dol
1.7K views9 Folien
8.Views.pdf von
8.Views.pdf8.Views.pdf
8.Views.pdfSunita Milind Dol
1.7K views5 Folien
7. Nested Subqueries.pdf von
7. Nested Subqueries.pdf7. Nested Subqueries.pdf
7. Nested Subqueries.pdfSunita Milind Dol
1.7K views9 Folien
6. Aggregate Functions.pdf von
6. Aggregate Functions.pdf6. Aggregate Functions.pdf
6. Aggregate Functions.pdfSunita Milind Dol
1.7K views12 Folien
5. Basic Structure of SQL Queries.pdf von
5. Basic Structure of SQL Queries.pdf5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdfSunita Milind Dol
1.8K views64 Folien
4. DML.pdf von
4. DML.pdf4. DML.pdf
4. DML.pdfSunita Milind Dol
1.7K views17 Folien

Más de Sunita Milind Dol(20)

Último

START Newsletter 3 von
START Newsletter 3START Newsletter 3
START Newsletter 3Start Project
6 views25 Folien
SPICE PARK DEC2023 (6,625 SPICE Models) von
SPICE PARK DEC2023 (6,625 SPICE Models) SPICE PARK DEC2023 (6,625 SPICE Models)
SPICE PARK DEC2023 (6,625 SPICE Models) Tsuyoshi Horigome
36 views218 Folien
Ansari: Practical experiences with an LLM-based Islamic Assistant von
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic AssistantM Waleed Kadous
7 views29 Folien
MongoDB.pdf von
MongoDB.pdfMongoDB.pdf
MongoDB.pdfArthyR3
49 views6 Folien
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdf von
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdfASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdf
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdfAlhamduKure
6 views11 Folien
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc... von
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...csegroupvn
6 views210 Folien

Último(20)

Ansari: Practical experiences with an LLM-based Islamic Assistant von M Waleed Kadous
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic Assistant
M Waleed Kadous7 views
MongoDB.pdf von ArthyR3
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR349 views
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdf von AlhamduKure
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdfASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdf
ASSIGNMENTS ON FUZZY LOGIC IN TRAFFIC FLOW.pdf
AlhamduKure6 views
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc... von csegroupvn
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
csegroupvn6 views
fakenews_DBDA_Mar23.pptx von deepmitra8
fakenews_DBDA_Mar23.pptxfakenews_DBDA_Mar23.pptx
fakenews_DBDA_Mar23.pptx
deepmitra816 views
BCIC - Manufacturing Conclave - Technology-Driven Manufacturing for Growth von Innomantra
BCIC - Manufacturing Conclave -  Technology-Driven Manufacturing for GrowthBCIC - Manufacturing Conclave -  Technology-Driven Manufacturing for Growth
BCIC - Manufacturing Conclave - Technology-Driven Manufacturing for Growth
Innomantra 10 views
Design_Discover_Develop_Campaign.pptx von ShivanshSeth6
Design_Discover_Develop_Campaign.pptxDesign_Discover_Develop_Campaign.pptx
Design_Discover_Develop_Campaign.pptx
ShivanshSeth645 views
GDSC Mikroskil Members Onboarding 2023.pdf von gdscmikroskil
GDSC Mikroskil Members Onboarding 2023.pdfGDSC Mikroskil Members Onboarding 2023.pdf
GDSC Mikroskil Members Onboarding 2023.pdf
gdscmikroskil59 views
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx von lwang78
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx
lwang78165 views
_MAKRIADI-FOTEINI_diploma thesis.pptx von fotinimakriadi
_MAKRIADI-FOTEINI_diploma thesis.pptx_MAKRIADI-FOTEINI_diploma thesis.pptx
_MAKRIADI-FOTEINI_diploma thesis.pptx
fotinimakriadi10 views
SUMIT SQL PROJECT SUPERSTORE 1.pptx von Sumit Jadhav
SUMIT SQL PROJECT SUPERSTORE 1.pptxSUMIT SQL PROJECT SUPERSTORE 1.pptx
SUMIT SQL PROJECT SUPERSTORE 1.pptx
Sumit Jadhav 22 views
Design of machine elements-UNIT 3.pptx von gopinathcreddy
Design of machine elements-UNIT 3.pptxDesign of machine elements-UNIT 3.pptx
Design of machine elements-UNIT 3.pptx
gopinathcreddy34 views

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/