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
   you...
Database Design Principles.

   Know your technology and it’s limits.
   Collect all relevant information regarding
   you...
The technology
Certain databases have limits, so know them.


  Microsoft Access            2 gigabyte

                  ...
The technology
Databases can have a limit to the number of
concurrent connections.

  Microsoft Access            255 user...
The technology
Databases have costs associated to them.


  Microsoft Access         Can$300.00

Microsoft SQL Server     ...
The technology

Since the database is software, we have to
ensure that we have powerful enough
hardware to meet the demand...
Google Data Centre
The technology

Don’t paint yourself into a corner because of
bad technology choices. Imagine the worst
case scenario and ...
Planning Your Database
• Understand the data that you will be
  creating in the database and design entities.
• An entity ...
Planning Your Database
• Often the term entity is used instead of
  the word table.
• A table in a database is where attri...
TABLE (or entity):

tbl_myFriendsBirthdays
    Attribute    Data Type                Sample Data
       id         integer...
Planning Your Database

• Understand all of the data entities that you
  would ever want to store in the database.
• Attem...
Exercise
Let us pretend we are being asked to create
an inventory database for a shoe company
that manufactures different ...
Homework

• Discover all of the data types that can be
  applied to attributes of a table (entity).
• Print them onto a sh...
Week3 Lecture Database Design
Upcoming SlideShare
Loading in …5
×

Week3 Lecture Database Design

618 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
618
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide


































  • Week3 Lecture Database Design

    1. 1. Data Design Making sense of SQL.
    2. 2. Database Design Principles.
    3. 3. Database Design Principles. Know your technology and it’s limits.
    4. 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. 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. 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. 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. 8. The technology Databases have costs associated to them. Microsoft Access Can$300.00 Microsoft SQL Server $700 - $30 000 + My SQL free
    9. 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. 10. Google Data Centre
    11. 11. 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.
    12. 12. 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.
    13. 13. 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.
    14. 14. 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.
    15. 15. 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.
    16. 16. 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.
    17. 17. 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.

    ×