BSYS 2060 Lecture 2 – Data Literacy & Data Modeling
Agenda•   Announcements•   Digital Literacy•   Data Modeling•   Relationship Types•   Example
Bring headphones to all labs from here on in!    Source: CC by 2.0, http://www.flickr.com/photos/bobjudge/3569973941/
https://zenportfolios.ca/bcit-bsys-2060-2012/week-0/
http://www.lynda.com/
Announcements• If you didn’t already do the “Week 0” exercise, you  should do ASAP!• Sign up for Lynda.com ASAP   – $21.67...
If you didn’t do this already…Go to zenportfolios.ca, log-in, click on Groups, search for 2060Then join the BSYS-2060-2012...
Digital Literacy
http://www.nytimes.com/2012/03/28/technology/for-an-edge-on-the-internet-computer-code-gains-a-following.html?pagewanted=all
“Inasmuch as you need to know how to readEnglish, you need to have someunderstanding of the code that builds theWeb,” said...
We live in an information age where data is king.
Data often most valuable asset of a companye.g. Aeroplan worth more than Air Canada
We live in a data mash-up world.
WordPress that uses open source   Twitter API / IntegrationMySQL database back-end
Take control of your data. Best thing is to buy your own domain nameand build your own site and web presence there.       ...
Where does data belong?
Diaspora           The average middle aged person has their data spread out over                   A 1000 different databa...
Who owns data?
Building a database for an organization?
What is the organization’s mission?
What is the project’s mission?
What data is required to make gooddecisions or for other reporting needs?
What data is currently being collected?
How is the data collected being used?
What data should be collected?
What are the main data entities?These will become your tables
What are the required fields and field data types?
What are the relationships between the tables?
Select your tools?e.g. MS Access, MS SQL, MySQL, OracleWhat is being used now if anything?
Be careful of the hammer! To a hammer, everything looks like a nail. If you only know MS Access, you may see always see MS...
NormalizationA brief introduction to the first three               forms...
“Normalization”• In the field of relational database design,  normalization is a systematic way of ensuring  that a databa...
“...insertion, update, and deletion            anomalies...”      Until a Course Code is assigned to this record, it can n...
“...insertion, update, and deletion            anomalies...”      An edit made to one record may not be made to ALL      r...
“...insertion, update, and deletion            anomalies...”      If the Course Code is deleted the information for the   ...
Three Normal Forms• 1NF  – Eliminate repeating groups  – No redundant data• 2NF  – Eliminate independent data  – All field...
Un-Normalized Table (i.e. Excel)
First Normal Form (1NF)                 0NF – “un-normalized”                                 1NF
Second Normal Form (2NF)                       1NF                           2NF
Third Normal Form (3NF)                          2NF                          3NF
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Lecture2 slides-march-29
Upcoming SlideShare
Loading in …5
×

Lecture2 slides-march-29

1,650 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,650
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • http://www.google.ca/imgres?imgurl=http://tctechcrunch.files.wordpress.com/2010/03/binary_data.jpg&imgrefurl=http://techcrunch.com/2010/03/16/big-data-freedom/&usg=__Sh_4EN0mwwOH35FqrsJRtvJEZuA=&h=600&w=800&sz=187&hl=en&start=30&zoom=1&tbnid=7t1PdGOKt490rM:&tbnh=127&tbnw=169&ei=ONmUTf_3KYf6swPKweDVBQ&prev=/images%3Fq%3Ddata%26um%3D1%26hl%3Den%26sa%3DN%26biw%3D1024%26bih%3D574%26tbs%3Disch:10%2C976&um=1&itbs=1&iact=rc&dur=284&oei=LtmUTY7OAs_OiAKz0cX_CA&page=3&ndsp=15&ved=1t:429,r:7,s:30&tx=105&ty=34&biw=1024&bih=574
  • http://www.flickr.com/photos/alismith44/269843032/
  • Lecture2 slides-march-29

    1. 1. BSYS 2060 Lecture 2 – Data Literacy & Data Modeling
    2. 2. Agenda• Announcements• Digital Literacy• Data Modeling• Relationship Types• Example
    3. 3. Bring headphones to all labs from here on in! Source: CC by 2.0, http://www.flickr.com/photos/bobjudge/3569973941/
    4. 4. https://zenportfolios.ca/bcit-bsys-2060-2012/week-0/
    5. 5. http://www.lynda.com/
    6. 6. Announcements• If you didn’t already do the “Week 0” exercise, you should do ASAP!• Sign up for Lynda.com ASAP – $21.67 US for duration of semester – Videos to watch will be assigned shortly after today’s lecture – Bring your headphones to all future labs!• Join the BSYS 2060 group on zenportfolios.ca if you didn’t already – Upload an avatar if you didn’t already – We will start using this online group more in the weeks to come, especially for the project
    7. 7. If you didn’t do this already…Go to zenportfolios.ca, log-in, click on Groups, search for 2060Then join the BSYS-2060-2012 group
    8. 8. Digital Literacy
    9. 9. http://www.nytimes.com/2012/03/28/technology/for-an-edge-on-the-internet-computer-code-gains-a-following.html?pagewanted=all
    10. 10. “Inasmuch as you need to know how to readEnglish, you need to have someunderstanding of the code that builds theWeb,” said Sarah Henry, 39, an investmentmanager who lives in Wayne, Pa. “It isfundamental to the way the world isorganized and the way people think aboutthings these days.”
    11. 11. We live in an information age where data is king.
    12. 12. Data often most valuable asset of a companye.g. Aeroplan worth more than Air Canada
    13. 13. We live in a data mash-up world.
    14. 14. WordPress that uses open source Twitter API / IntegrationMySQL database back-end
    15. 15. Take control of your data. Best thing is to buy your own domain nameand build your own site and web presence there. http://jacobjpope.com
    16. 16. Where does data belong?
    17. 17. Diaspora The average middle aged person has their data spread out over A 1000 different database locations Many “fly by Self-hosted night” Web 2.0 Website apps containing all your data You control You don’t completely control the data at all Not so easy... convenient Trend is towards you controlling your data
    18. 18. Who owns data?
    19. 19. Building a database for an organization?
    20. 20. What is the organization’s mission?
    21. 21. What is the project’s mission?
    22. 22. What data is required to make gooddecisions or for other reporting needs?
    23. 23. What data is currently being collected?
    24. 24. How is the data collected being used?
    25. 25. What data should be collected?
    26. 26. What are the main data entities?These will become your tables
    27. 27. What are the required fields and field data types?
    28. 28. What are the relationships between the tables?
    29. 29. Select your tools?e.g. MS Access, MS SQL, MySQL, OracleWhat is being used now if anything?
    30. 30. Be careful of the hammer! To a hammer, everything looks like a nail. If you only know MS Access, you may see always see MS Access as the solution even when it’s not. If you only know MS Excel, it seems like the perfect choice!Source:http://www.flickr.com/photos/fixersphotos/3199566032/
    31. 31. NormalizationA brief introduction to the first three forms...
    32. 32. “Normalization”• In the field of relational database design, normalization is a systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain undesirable characteristics—insertion, update, and deletion anomalies—that could lead to a loss of data integrity. Codd, E.F. The Relational Model for Database Management: Version 2. Addison-Wesley (1990), p. 271
    33. 33. “...insertion, update, and deletion anomalies...” Until a Course Code is assigned to this record, it can not be inserted in the table
    34. 34. “...insertion, update, and deletion anomalies...” An edit made to one record may not be made to ALL records for the same employee
    35. 35. “...insertion, update, and deletion anomalies...” If the Course Code is deleted the information for the Faculty Member will be lost.
    36. 36. Three Normal Forms• 1NF – Eliminate repeating groups – No redundant data• 2NF – Eliminate independent data – All fields depend on Primary Key• 3NF – Eliminate dependency on non-key fields – Fields do not depend on each other
    37. 37. Un-Normalized Table (i.e. Excel)
    38. 38. First Normal Form (1NF) 0NF – “un-normalized” 1NF
    39. 39. Second Normal Form (2NF) 1NF 2NF
    40. 40. Third Normal Form (3NF) 2NF 3NF

    ×