SlideShare a Scribd company logo
DATABASE DESIGN
   Database design is the process of producing a
    detailed data model of a database.
   This logical data model contains all the needed
    logical and physical design choices and physical
    storage parameters needed to generate a design in
    a Data Definition Language, which can then be
    used to create a database.
    A fully attributed data model contains detailed
    attributes for each entity.
Usually, the designer must:

   Determine the relationships between the different data
    elements.

   Superimpose a logical structure upon the data on the
    basis of these relationships.
THE DESIGN PROCESS



 Determine    the purpose of the
 database - This helps prepare for the
 remaining steps.
   Find and organize the information required -
    Gather all of the types of information to record in
    the database, such as product name and order
    number.
   Divide the information into tables - Divide information
    items into major entities or subjects, such as Products or
    Orders. Each subject then becomes a table.
 Turn information items into columns -
 Decide what information needs to stored
 in each table. Each item becomes a field,
 and is displayed as a column in the table.
 For example, an Employees table might
 include fields such as Last Name and
 Hire Date.
 Specify  primary keys - Choose each
 table’s primary key. The primary key is a
 column that is used to uniquely identify
 each row.
 Setup the table relationships - Look at
 each table and decide how the data in
 one table is related to the data in other
 tables. Add fields to tables or create new
 tables to clarify the relationships, as
 necessary.
   Refine the design - Analyze the design for errors.
    Create tables and add a few records of sample
    data. Check if results come from the tables as
    expected. Make adjustments to the design, as
    needed.
 Apply the normalization rules - Apply
 the data normalization rules to see if
 tables are structured correctly. Make
 adjustments to the tables
THE TABLES
   The core table of the database is Incident. This
    tracks the bulk of information submitting about a
    particular incident. For example, under injuries
    there might be multiple parts of the body that were
    injured. There are several ways to deal with this.
Solution          Pros                      Cons
Add one field for Keeps all the data in one Makes the table extremely large. Adding
each item         table.                    a new piece of information to be stored
                                            means adding an entirely new field. If
                                            there are multiple copies of the database
                                            in    use   synchronization      becomes
                                            extremely difficult. Many database fields
                                            will be empty. Poor database design
                                            practice.  Less       efficient  database
                                            storage.
Allow       multiple Keeps all the data in one Extremely     poor     database   design
pieces of data to be table.                    practice. Makes querying the database
entered in each                                for incidents that meet certain criteria
field.                                         extremely difficult and time consuming.

Create Child Tables Best practice for database      Spreads data out over multiple tables
                    design. Allows for easily       which means that greater database
                    adding new types of             expertise is needed to develop and work
                    information.    Does      not   with the data.
                    create a "bulky" core table.
                    More efficient for querying
                    the database for incidents
                    that meet certain criteria.
   The recommendation is to create an idb_Incidents
    Table to handle the information that is discrete (that is
    can only have one value such as the date of the
    incident) and create a series of Child tables that store
    information where there may be multiple pieces of
    data.
   This makes the database much more extendable. If
    new information needs to be collected, either a new
    field would be added to the idb_Incidents Table or a
    new Child table could be created.
Importance of database design (1)

More Related Content

What's hot (20)

PPTX
Lecture 4 sql {basics keys and constraints}
Shubham Shukla
 
PPT
DDL - Lenguaje de definición de datos
vargasaldanajohanna
 
PPTX
Sql Constraints
I L0V3 CODING DR
 
PPTX
multi dimensional data model
moni sindhu
 
PPTX
Entity Relationship Diagrams
sadique_ghitm
 
PPTX
Denormalization
Sohail Haider
 
PPTX
Introduction of sql server indexing
Mahabubur Rahaman
 
PPT
Data models
Usman Tariq
 
PPS
Architecture of-dbms-and-data-independence
Anuj Modi
 
PPTX
Types Of Keys in DBMS
PadamNepal1
 
PPTX
Distributed database
sanjay joshi
 
PPTX
SQL - DML and DDL Commands
Shrija Madhu
 
PPTX
Presentation slides of Sequence Query Language (SQL)
Punjab University
 
PPTX
Types of databases
Md Showrov Ahmed
 
PPTX
Structured query language(sql)ppt
Gowarthini
 
PPT
Training MS Access 2007
crespoje
 
PPT
Sql joins
Berkeley
 
PPT
VB.net
PallaviKadam
 
PPTX
Oracle: DML
DataminingTools Inc
 
Lecture 4 sql {basics keys and constraints}
Shubham Shukla
 
DDL - Lenguaje de definición de datos
vargasaldanajohanna
 
Sql Constraints
I L0V3 CODING DR
 
multi dimensional data model
moni sindhu
 
Entity Relationship Diagrams
sadique_ghitm
 
Denormalization
Sohail Haider
 
Introduction of sql server indexing
Mahabubur Rahaman
 
Data models
Usman Tariq
 
Architecture of-dbms-and-data-independence
Anuj Modi
 
Types Of Keys in DBMS
PadamNepal1
 
Distributed database
sanjay joshi
 
SQL - DML and DDL Commands
Shrija Madhu
 
Presentation slides of Sequence Query Language (SQL)
Punjab University
 
Types of databases
Md Showrov Ahmed
 
Structured query language(sql)ppt
Gowarthini
 
Training MS Access 2007
crespoje
 
Sql joins
Berkeley
 
VB.net
PallaviKadam
 
Oracle: DML
DataminingTools Inc
 

Similar to Importance of database design (1) (20)

PPTX
chapter 1 HARDWARE AND NETWORKING SERVICE.pptx
sufiyanhussein798
 
PPTX
Operate Database Applicationidentify ntrk handtools.pptx
edget1
 
PPTX
Databases
guestf77c65c
 
PPTX
Week 05 designing database and tables
RIAH ENCARNACION
 
PPTX
Relational database concept and technology
Ducat
 
POT
10359485
kavumo
 
PPT
Ch 7 Physical D B Design
guest8fdbdd
 
PPT
Info systems databases
MR Z
 
PPTX
Data modeling tips from the trenches
Terry Bunio
 
PPTX
Feb 2nd Makeup Class
George Saban
 
PPTX
introductiontodatabases-151106233350-lva1-app6892(2).pptx
KvkExambranch
 
PPTX
Introduction to databases
Bryan Corpuz
 
PDF
DB- Lect #1 Intro.pdf
goodperson7
 
PPT
DB Design.ppt
JakeParas
 
PPT
week3.ppt
asmaa977996
 
PPT
Data processing
Joseph Lagod
 
PPTX
Database design process
V.V.Vanniaperumal College for Women
 
PPTX
Manjeet Singh.pptx
RAMCHANDRASHARMA7
 
PPTX
Structured Query Language (SQL) _ Edu4Sure Training.pptx
Edu4Sure
 
chapter 1 HARDWARE AND NETWORKING SERVICE.pptx
sufiyanhussein798
 
Operate Database Applicationidentify ntrk handtools.pptx
edget1
 
Databases
guestf77c65c
 
Week 05 designing database and tables
RIAH ENCARNACION
 
Relational database concept and technology
Ducat
 
10359485
kavumo
 
Ch 7 Physical D B Design
guest8fdbdd
 
Info systems databases
MR Z
 
Data modeling tips from the trenches
Terry Bunio
 
Feb 2nd Makeup Class
George Saban
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
KvkExambranch
 
Introduction to databases
Bryan Corpuz
 
DB- Lect #1 Intro.pdf
goodperson7
 
DB Design.ppt
JakeParas
 
week3.ppt
asmaa977996
 
Data processing
Joseph Lagod
 
Database design process
V.V.Vanniaperumal College for Women
 
Manjeet Singh.pptx
RAMCHANDRASHARMA7
 
Structured Query Language (SQL) _ Edu4Sure Training.pptx
Edu4Sure
 
Ad

More from yhen06 (20)

PPTX
Story telling
yhen06
 
PPTX
National book week celebration
yhen06
 
PPTX
Book fair
yhen06
 
PPTX
Basic education department library
yhen06
 
PPTX
Markey encyclopedia
yhen06
 
PPTX
Informational web pages
yhen06
 
PPTX
Indexing languages (2)
yhen06
 
PPTX
Hardware & software
yhen06
 
PPTX
Database system environment ppt.
yhen06
 
PPTX
Dictionary aizel
yhen06
 
PPTX
Book of days and first - aubrey
yhen06
 
PPTX
Bibliographies (2)
yhen06
 
PPTX
Database system environment ppt.
yhen06
 
PPTX
Advantages and disadvantages of digital library
yhen06
 
PPTX
Importance of data model
yhen06
 
PPTX
General factbooks
yhen06
 
PPTX
Evaluating different sources maam she
yhen06
 
PPTX
Catalla & cea
yhen06
 
PPTX
Project proposal final presentation
yhen06
 
PPTX
web tech
yhen06
 
Story telling
yhen06
 
National book week celebration
yhen06
 
Book fair
yhen06
 
Basic education department library
yhen06
 
Markey encyclopedia
yhen06
 
Informational web pages
yhen06
 
Indexing languages (2)
yhen06
 
Hardware & software
yhen06
 
Database system environment ppt.
yhen06
 
Dictionary aizel
yhen06
 
Book of days and first - aubrey
yhen06
 
Bibliographies (2)
yhen06
 
Database system environment ppt.
yhen06
 
Advantages and disadvantages of digital library
yhen06
 
Importance of data model
yhen06
 
General factbooks
yhen06
 
Evaluating different sources maam she
yhen06
 
Catalla & cea
yhen06
 
Project proposal final presentation
yhen06
 
web tech
yhen06
 
Ad

Recently uploaded (20)

PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 

Importance of database design (1)

  • 2. Database design is the process of producing a detailed data model of a database.
  • 3. This logical data model contains all the needed logical and physical design choices and physical storage parameters needed to generate a design in a Data Definition Language, which can then be used to create a database.
  • 4. A fully attributed data model contains detailed attributes for each entity.
  • 5. Usually, the designer must:  Determine the relationships between the different data elements.  Superimpose a logical structure upon the data on the basis of these relationships.
  • 6. THE DESIGN PROCESS  Determine the purpose of the database - This helps prepare for the remaining steps.
  • 7. Find and organize the information required - Gather all of the types of information to record in the database, such as product name and order number.
  • 8. Divide the information into tables - Divide information items into major entities or subjects, such as Products or Orders. Each subject then becomes a table.
  • 9.  Turn information items into columns - Decide what information needs to stored in each table. Each item becomes a field, and is displayed as a column in the table. For example, an Employees table might include fields such as Last Name and Hire Date.
  • 10.  Specify primary keys - Choose each table’s primary key. The primary key is a column that is used to uniquely identify each row.
  • 11.  Setup the table relationships - Look at each table and decide how the data in one table is related to the data in other tables. Add fields to tables or create new tables to clarify the relationships, as necessary.
  • 12. Refine the design - Analyze the design for errors. Create tables and add a few records of sample data. Check if results come from the tables as expected. Make adjustments to the design, as needed.
  • 13.  Apply the normalization rules - Apply the data normalization rules to see if tables are structured correctly. Make adjustments to the tables
  • 15. The core table of the database is Incident. This tracks the bulk of information submitting about a particular incident. For example, under injuries there might be multiple parts of the body that were injured. There are several ways to deal with this.
  • 16. Solution Pros Cons Add one field for Keeps all the data in one Makes the table extremely large. Adding each item table. a new piece of information to be stored means adding an entirely new field. If there are multiple copies of the database in use synchronization becomes extremely difficult. Many database fields will be empty. Poor database design practice. Less efficient database storage. Allow multiple Keeps all the data in one Extremely poor database design pieces of data to be table. practice. Makes querying the database entered in each for incidents that meet certain criteria field. extremely difficult and time consuming. Create Child Tables Best practice for database Spreads data out over multiple tables design. Allows for easily which means that greater database adding new types of expertise is needed to develop and work information. Does not with the data. create a "bulky" core table. More efficient for querying the database for incidents that meet certain criteria.
  • 17. The recommendation is to create an idb_Incidents Table to handle the information that is discrete (that is can only have one value such as the date of the incident) and create a series of Child tables that store information where there may be multiple pieces of data.
  • 18. This makes the database much more extendable. If new information needs to be collected, either a new field would be added to the idb_Incidents Table or a new Child table could be created.