SlideShare a Scribd company logo
Data Design
 Making sense of SQL.
Database Design Principles.
Database Design Principles.

   Know your technology and it’s limits.
Database Design Principles.

   Know your technology and it’s limits.
   Collect all relevant information regarding
   your project’s data and plan, plan, plan.
Database Design Principles.

   Know your technology and it’s limits.
   Collect all relevant information regarding
   your project’s data and plan, plan, plan.
   Only approach the computer once you
   have mapped out your database on paper.
The technology
Certain databases have limits, so know them.


  Microsoft Access            2 gigabyte

                       Operating System sets the
Microsoft SQL Server
                                 limit.
                       Operating System sets the
      My SQL
                                 limit.
The technology
Databases can have a limit to the number of
concurrent connections.

  Microsoft Access            255 users

Microsoft SQL Server           unlimited

                             125 by default
      My SQL
                       unlimited once configured.
The technology
Databases have costs associated to them.


  Microsoft Access         Can$300.00

Microsoft SQL Server     $700 - $30 000 +

      My SQL                   free
The technology

Since the database is software, we have to
ensure that we have powerful enough
hardware to meet the demand of the service.
Lots of users asking for data = Lots of power.
Google Data Centre
The technology

Don’t paint yourself into a corner because of
bad technology choices. Imagine the worst
case scenario and PLAN FOR IT!
MySQL can grow as long as there is hard
drive space to handle the data files and
servers fast enough to manage the traffic.
Planning Your Database
• Understand the data that you will be
  creating in the database and design entities.
• An entity is a collection of objects
  (persons, places, things) described by the
  same attributes.
• Entities are identified during the
  conceptual design phase of database and
  application design.
Planning Your Database
• Often the term entity is used instead of
  the word table.
• A table in a database is where attributes
  are stored.
• Attributes can be numbers, words, dates
  and even binary data objects. These are
  called the “data type” and are set on each
  attribute in the table.
TABLE (or entity):

tbl_myFriendsBirthdays
    Attribute    Data Type                Sample Data
       id         integer                      2
     Name          string                     Joe
    Birthday     date/time                  4082008

This table will store my friend’s birthdays. All of my
friends have a name and a date of birth, so those ideas
will become attributes.
The complete collection of my friends attributes will
become records in this table.
Planning Your Database

• Understand all of the data entities that you
  would ever want to store in the database.
• Attempt to consider all available options
  and variations that your application is going
  to require.
Exercise
Let us pretend we are being asked to create
an inventory database for a shoe company
that manufactures different styles of
footwear for different brands, like Nike.
Let’s create a list of all related data that we
would need to store regarding their
inventory.
Homework

• Discover all of the data types that can be
  applied to attributes of a table (entity).
• Print them onto a sheet of paper and bring
  this to next class. Please no copy and paste
  and have your name and the date on the
  sheet.

More Related Content

What's hot

Big Tools for Big Data
Big Tools for Big DataBig Tools for Big Data
Big Tools for Big Data
Lewis Crawford
 

What's hot (10)

Hadoop and IoT Sinergija 2014
Hadoop and IoT Sinergija 2014Hadoop and IoT Sinergija 2014
Hadoop and IoT Sinergija 2014
 
Hadoop and IoT Sinergija 2014
Hadoop and IoT Sinergija 2014Hadoop and IoT Sinergija 2014
Hadoop and IoT Sinergija 2014
 
Android development beyond the basics
Android development   beyond the basicsAndroid development   beyond the basics
Android development beyond the basics
 
Introduction to hadoop
Introduction to hadoopIntroduction to hadoop
Introduction to hadoop
 
Big Data Engineer Skills and Job Description | Edureka
Big Data Engineer Skills and Job Description | EdurekaBig Data Engineer Skills and Job Description | Edureka
Big Data Engineer Skills and Job Description | Edureka
 
Modern database
Modern databaseModern database
Modern database
 
Why on earth you should know data structures
Why on earth you should know data structuresWhy on earth you should know data structures
Why on earth you should know data structures
 
Introduction To Big Data Analytics On Hadoop - SpringPeople
Introduction To Big Data Analytics On Hadoop - SpringPeopleIntroduction To Big Data Analytics On Hadoop - SpringPeople
Introduction To Big Data Analytics On Hadoop - SpringPeople
 
Big Data Ecosystem
Big Data EcosystemBig Data Ecosystem
Big Data Ecosystem
 
Big Tools for Big Data
Big Tools for Big DataBig Tools for Big Data
Big Tools for Big Data
 

Viewers also liked

Week 4 Planning Animation
Week 4 Planning AnimationWeek 4 Planning Animation
Week 4 Planning Animation
Kevin Element
 
Methodology conceptual databases design roll no. 99 & 111
Methodology conceptual databases design roll no. 99 & 111Methodology conceptual databases design roll no. 99 & 111
Methodology conceptual databases design roll no. 99 & 111
Manoj Nolkha
 
Best Practices for Database Schema Design
Best Practices for Database Schema DesignBest Practices for Database Schema Design
Best Practices for Database Schema Design
Iron Speed
 
Webinar: Build an Application Series - Session 2 - Getting Started
Webinar: Build an Application Series - Session 2 - Getting StartedWebinar: Build an Application Series - Session 2 - Getting Started
Webinar: Build an Application Series - Session 2 - Getting Started
MongoDB
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 
English gcse final tips
English gcse final tipsEnglish gcse final tips
English gcse final tips
mrhoward12
 

Viewers also liked (20)

Week 2 - Design
Week 2 - DesignWeek 2 - Design
Week 2 - Design
 
Week 4 Planning Animation
Week 4 Planning AnimationWeek 4 Planning Animation
Week 4 Planning Animation
 
Tech montage
Tech montageTech montage
Tech montage
 
Demand Slidecast
Demand SlidecastDemand Slidecast
Demand Slidecast
 
Methodology conceptual databases design roll no. 99 & 111
Methodology conceptual databases design roll no. 99 & 111Methodology conceptual databases design roll no. 99 & 111
Methodology conceptual databases design roll no. 99 & 111
 
REST API Design for SQL developers
REST API Design for SQL developersREST API Design for SQL developers
REST API Design for SQL developers
 
4 the sql_standard
4 the  sql_standard4 the  sql_standard
4 the sql_standard
 
1 introduction
1 introduction1 introduction
1 introduction
 
5 data storage_and_indexing
5 data storage_and_indexing5 data storage_and_indexing
5 data storage_and_indexing
 
Managing your tech career
Managing your tech careerManaging your tech career
Managing your tech career
 
6 relational schema_design
6 relational schema_design6 relational schema_design
6 relational schema_design
 
Normalization
NormalizationNormalization
Normalization
 
Best Practices for Database Schema Design
Best Practices for Database Schema DesignBest Practices for Database Schema Design
Best Practices for Database Schema Design
 
Webinar: Build an Application Series - Session 2 - Getting Started
Webinar: Build an Application Series - Session 2 - Getting StartedWebinar: Build an Application Series - Session 2 - Getting Started
Webinar: Build an Application Series - Session 2 - Getting Started
 
3 relational model
3 relational model3 relational model
3 relational model
 
MySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsMySQL Replication: Pros and Cons
MySQL Replication: Pros and Cons
 
Distributed Postgres
Distributed PostgresDistributed Postgres
Distributed Postgres
 
Database Design
Database DesignDatabase Design
Database Design
 
2 entity relationship_model
2 entity relationship_model2 entity relationship_model
2 entity relationship_model
 
English gcse final tips
English gcse final tipsEnglish gcse final tips
English gcse final tips
 

Similar to Week3 Lecture Database Design

Sharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data LessonsSharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data Lessons
George Stathis
 
Unit 3 3 architectural design
Unit 3 3 architectural designUnit 3 3 architectural design
Unit 3 3 architectural design
Hiren Selani
 

Similar to Week3 Lecture Database Design (20)

How to Survive as a Data Architect in a Polyglot Database World
How to Survive as a Data Architect in a Polyglot Database WorldHow to Survive as a Data Architect in a Polyglot Database World
How to Survive as a Data Architect in a Polyglot Database World
 
Steps towards business intelligence
Steps towards business intelligenceSteps towards business intelligence
Steps towards business intelligence
 
Essential Data Engineering for Data Scientist
Essential Data Engineering for Data Scientist Essential Data Engineering for Data Scientist
Essential Data Engineering for Data Scientist
 
Sharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data LessonsSharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data Lessons
 
12363 database certification
12363 database certification12363 database certification
12363 database certification
 
Guidelines DataCite Denmark 2014
Guidelines DataCite Denmark 2014Guidelines DataCite Denmark 2014
Guidelines DataCite Denmark 2014
 
Unit 3 3 architectural design
Unit 3 3 architectural designUnit 3 3 architectural design
Unit 3 3 architectural design
 
Database basics
Database basicsDatabase basics
Database basics
 
DA_01_Intro.pptx
DA_01_Intro.pptxDA_01_Intro.pptx
DA_01_Intro.pptx
 
Introduction to Data Science.pptx
Introduction to Data Science.pptxIntroduction to Data Science.pptx
Introduction to Data Science.pptx
 
DBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.comDBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.com
 
Week 1
Week 1Week 1
Week 1
 
What Your Database Query is Really Doing
What Your Database Query is Really DoingWhat Your Database Query is Really Doing
What Your Database Query is Really Doing
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27
 
How and when to use NoSQL
How and when to use NoSQLHow and when to use NoSQL
How and when to use NoSQL
 
Move a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudMove a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloud
 
AZMS PRESENTATION.pptx
AZMS PRESENTATION.pptxAZMS PRESENTATION.pptx
AZMS PRESENTATION.pptx
 
Taming the shrew, Optimizing Power BI Options
Taming the shrew, Optimizing Power BI OptionsTaming the shrew, Optimizing Power BI Options
Taming the shrew, Optimizing Power BI Options
 
iOS Beginners Lesson 1
iOS Beginners Lesson 1iOS Beginners Lesson 1
iOS Beginners Lesson 1
 
DBM 380 EDU Education Planning--dbm380edu.com
DBM 380 EDU Education Planning--dbm380edu.comDBM 380 EDU Education Planning--dbm380edu.com
DBM 380 EDU Education Planning--dbm380edu.com
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 

Recently uploaded (20)

Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 

Week3 Lecture Database Design

  • 1. Data Design Making sense of SQL.
  • 3. Database Design Principles. Know your technology and it’s limits.
  • 4. Database Design Principles. Know your technology and it’s limits. Collect all relevant information regarding your project’s data and plan, plan, plan.
  • 5. Database Design Principles. Know your technology and it’s limits. Collect all relevant information regarding your project’s data and plan, plan, plan. Only approach the computer once you have mapped out your database on paper.
  • 6. The technology Certain databases have limits, so know them. Microsoft Access 2 gigabyte Operating System sets the Microsoft SQL Server limit. Operating System sets the My SQL limit.
  • 7. The technology Databases can have a limit to the number of concurrent connections. Microsoft Access 255 users Microsoft SQL Server unlimited 125 by default My SQL unlimited once configured.
  • 8. The technology Databases have costs associated to them. Microsoft Access Can$300.00 Microsoft SQL Server $700 - $30 000 + My SQL free
  • 9. The technology Since the database is software, we have to ensure that we have powerful enough hardware to meet the demand of the service. Lots of users asking for data = Lots of power.
  • 10.
  • 12. The technology Don’t paint yourself into a corner because of bad technology choices. Imagine the worst case scenario and PLAN FOR IT! MySQL can grow as long as there is hard drive space to handle the data files and servers fast enough to manage the traffic.
  • 13. Planning Your Database • Understand the data that you will be creating in the database and design entities. • An entity is a collection of objects (persons, places, things) described by the same attributes. • Entities are identified during the conceptual design phase of database and application design.
  • 14. Planning Your Database • Often the term entity is used instead of the word table. • A table in a database is where attributes are stored. • Attributes can be numbers, words, dates and even binary data objects. These are called the “data type” and are set on each attribute in the table.
  • 15. TABLE (or entity): tbl_myFriendsBirthdays Attribute Data Type Sample Data id integer 2 Name string Joe Birthday date/time 4082008 This table will store my friend’s birthdays. All of my friends have a name and a date of birth, so those ideas will become attributes. The complete collection of my friends attributes will become records in this table.
  • 16. Planning Your Database • Understand all of the data entities that you would ever want to store in the database. • Attempt to consider all available options and variations that your application is going to require.
  • 17. Exercise Let us pretend we are being asked to create an inventory database for a shoe company that manufactures different styles of footwear for different brands, like Nike. Let’s create a list of all related data that we would need to store regarding their inventory.
  • 18. Homework • Discover all of the data types that can be applied to attributes of a table (entity). • Print them onto a sheet of paper and bring this to next class. Please no copy and paste and have your name and the date on the sheet.

Editor's Notes