Database Design Principles – Lecture Data Dictionary.

Slides:



Advertisements
Similar presentations
Bordoloi and Bock Chapter 2 :TABLES AND INDEXES. Bordoloi and Bock One of the first steps in creating a database is to create the tables that will store.
Advertisements

CIT 613: Relational Database Development using SQL Revision of Tables and Data Types.
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
The Relational Database Model – some relations you might want to avoid!!!
WJEC Applied ICT Databases – Data Dictionary and Data Types Data Dictionary According to Wikipedia: A data dictionary, as defined in the IBM Dictionary.
GCSE Computing#BristolMet Session Objectives# 21 MUST describe methods of validating data as it is input. SHOULD explain the use of key fields to connect.
THE RELATIONAL DATABASE MODEL & THE DATABASE DEVELOPMENT PROCESS Fact of the Week: According to a Gartner study in ‘06, Microsoft SQL server had the highest.
Quick-and-dirty.  Commands end in a semi-colon ◦ If you forget, another prompt line shows up  Either continue the command or…  End it with a semi-colon.
1 DBS201: More on SQL Lecture 2. 2 Agenda Review How to create a table How to insert data into a table Terms Lab 2.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
SQL Components DML DDL DAL. Overview u Getting the records onto the disk - mapping u Managing disk space u SQL Modes u Ceating database.
Designing a Database Unleashing the Power of Relational Database Design.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
File and Database Design; Logic Modeling Class 24.
© Pearson Education Limited, Chapter 12 Physical Database Design – Step 3 (Translate Logical Design) Transparencies.
Database Architecture The Relational Database Model.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Relational Model Session 6 Course Name: Database System Year : 2012.
Content Resource- Elamsari and Navathe, Fundamentals of Database Management systems.
Lecture 3 The Relational DB Model. Learning Objectives That the relational database model takes a logical view of data That the relational model’s basic.
DATA MODELING AND DATABASE DESIGN
Lecture 8 Index Organized Tables Clusters Index compression
Lecture 9 Methodology – Physical Database Design for Relational Databases.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
SQL Structured Query Language Programming Course.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
Relational Data Model Ch. 7.1 – 7.3 John Ortiz Lecture 3Relational Data Model2 Why Study Relational Model?  Most widely used model.  Vendors: IBM,
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
10/10/2012ISC239 Isabelle Bichindaritz1 Physical Database Design.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
IST 220 Introduction to Databases Course Wrap-up.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
Methodology – Physical Database Design for Relational Databases.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
IST 318 – DB Administration Data Retrieval Using SELECT statements.
1 CS 430 Database Theory Winter 2005 Lecture 4: Relational Model.
Database Design – Lecture 6 Moving to a Logical Model.
Database Basics BCIS 3680 Enterprise Programming.
The Relational Database Model & The Database Development Process
Introduction to the ABAP System. Slide 2 The Data Browser Allows us to look at the underlying table contents Use transaction code SE16.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Relational Database Model & Database Development Process IST359 M005 Yang Wang 342 Hinds
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
Howard Paul. Sequential Access Index Files and Data File Random Access.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
1 DBS201: More on SQL Lecture 2. 2 Agenda Select command review How to create a table How to insert data into a table.
Logical Database Design and Relation Data Model Muhammad Nasir
Lecture # 24 Introduction to SQL Muhammad Emran Database Systems.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Database Design – Lecture 4
CSIS 115 Database Design and Applications for Business
Theory behind the relational engine
Theory behind the relational engine
Databases and Information Management
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
DBS201: More on SQL Lecture 2.
IST 318 Database Administration
Databases and Information Management
Oracle Data Definition Language (DDL)
Database Design and Development
INSTRUCTOR: MRS T.G. ZHOU
DBS201: More on SQL Lecture 2.
G061 - Data Dictionary.
Presentation transcript:

Database Design Principles – Lecture Data Dictionary

2 Lecture Objectives Purpose of a data dictionary Building a data dictionary

3 Purpose of a Data Dictionary Purpose Use to define the purpose of each table and attribute Describes the table Describes the characteristics of each attribute

4 Building a Data Dictionary Data Dictionary template Template used can vary but key information required Table name Column name Data type Length PK/FK? Nulls allowed? Unique? Domain Default

5 Building a Data Dictionary Data Dictionary template Table Name: ColumnData Type LengthPKFKNot Null UniqueDomainDefault

6 Building a Data Dictionary Data Dictionary template Table name Use a meaningful name i.e. COURSE Column name i.e. CRSE_CODE, CRSE_DESC Data type i.e. CRSE_CODE numeric; CRSE_DESC character Length length of the field (column)

7 Building a Data Dictionary Data Dictionary template PK/FK? Is this attribute a PK? If attribute is an FK, identify the table it is PK of Nulls allowed? Are nulls allowed in this field Unique? Does the value of this field have to be unique? By default PK’s always unique

8 Building a Data Dictionary Data Dictionary template Domain Is there a range of values that are only allowed in this table? Default Is there a default value for this field no data is stored

9 Building a Data Dictionary Data Dictionary template Table Name: Student ColumnData Type LengthPKFKNot Null UniqueDomainDefault Stud_noNum3Y Stud_LnameChar15 Stud-FnameChar15 Stud_PgmChar3PGM (pgm_id) Locker_numNum3Y

10 Building a Data Dictionary Data Dictionary template Table Name: Program ColumnData Type LengthPKFKNot Null UniqueDomainDefault Pgm_idChar3YCPA, CPD Pgm_NameChar40Y No_SemstrsNum1Y>=06