Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database Design 1 CMS 476 Dr. Karl Horak, Instructor.

Similar presentations


Presentation on theme: "Database Design 1 CMS 476 Dr. Karl Horak, Instructor."— Presentation transcript:

1 Database Design 1 CMS 476 Dr. Karl Horak, Instructor

2 Session 1 Administrivia Administrivia Course Overview Course Overview Week in Review Week in Review Application du Jour Application du Jour Lecture: The Who, What, When, Where and Why of Databases Lecture: The Who, What, When, Where and Why of Databases Demonstration: Introduction to Access Demonstration: Introduction to Access Exercises Exercises

3 Course Overview Instructor background Instructor background Expectationsof students Expectationsof students Grading Grading Reference material Reference material Organization and presentation Organization and presentation Tools and resources Tools and resources

4 Instructor Background PhD, U of A, 1981 PhD, U of A, 1981 –Majored in Botany, Ecology, Statistics and Genetics –Numerical taxonomy and agricultural statistics Adjunct Professor, CSF since 1990 Adjunct Professor, CSF since 1990 Principle Member of Technical Staff, Sandia National Laboratories Principle Member of Technical Staff, Sandia National Laboratories –Cooperative International Progams –Heavily involved in information management— this class is about what I really do every day

5 Current Projects RPT Image Comparison RPT Image Comparison Global Engagement website Global Engagement website Spent nuclear fuel assessment survey Spent nuclear fuel assessment survey Wide-area networking technologies for border monitoring Wide-area networking technologies for border monitoring

6 My Toolset SQL SQL Access Access VBA VBA Python Python Plone Plone

7 The Bottom Line Nice people Nice people Cool projects Cool projects Interesting travel Interesting travel

8 Expectations of Students Preparation Preparation Attendance Attendance Participation Participation Homework Homework Exam Exam

9 Grading Course Activity % of Grade Homework (3 @ 20 pts) 60% Final Exam 30% Class Participation 10%

10 Reference Material http://home.comcast.net/~karlhorak/476_SYL.htm http://home.comcast.net/~karlhorak/476_SYL.htm http://dir.yahoo.com/Computers_and_Internet/Software/Databases/ http://dir.yahoo.com/Computers_and_Internet/Software/Databases/ http://dir.yahoo.com/Computers_and_Internet/Software/Databases/ http://en.wikipedia.org/wiki/Database http://en.wikipedia.org/wiki/Database http://en.wikipedia.org/wiki/Database http://ocw.mit.edu http://ocw.mit.edu (especially http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-830Fall-2005/CourseHome/index.htm) or just Google for it or just Google for it Where’s the textbook?! At your fingertips …

11 Organization and Presentation Week in review—databases in real life Week in review—databases in real life Recap—highlights of previous topics and this week’s podcast Recap—highlights of previous topics and this week’s podcast Application du jour—samples of databases in action Application du jour—samples of databases in action Tonight’s lecture topic Tonight’s lecture topic Demonstration Demonstration Exercises and Q&A Exercises and Q&A

12 Tools and Resources Access— http://office.microsoft.com/en-us/access Access— http://office.microsoft.com/en-us/access http://office.microsoft.com/en-us/access MySQL— http://www.mysql.com MySQL— http://www.mysql.com http://www.mysql.com Plone— http://plone.org Plone— http://plone.org http://plone.org

13 Onward…!

14 Week in Review Or, what I did on my summer vacation RPT—Access and Python RPT—Access and Python NEN survey tool NEN survey tool WACSI WACSI MMNA MMNA

15 Application du Jour WACSI WACSI –“Web Access for Civil Society Improvements” –Middle East Regional activity –Internet-centered collaboration –Focused on: Societal improvements Societal improvements Economic development Economic development Women’s empowerment Women’s empowerment Education Education Religious tolerance Religious tolerance Human rights Human rights –http://unm.wacsi.edu

16 Tonight’s Lecture Topic: Who, What, When, Where and Why What is a database? What is a database? Why you should care? Why you should care? Who uses databases? Who uses databases? When should you use a database? When should you use a database? Where are the databases? Where are the databases?

17 What is a Database? Webster: “a usually large collection of data organized especially for rapid search and retrieval (as by a computer)” Webster: “a usually large collection of data organized especially for rapid search and retrieval (as by a computer)” Horak: All computerized digital information is a database, it just doesn’t know it yet. Horak: All computerized digital information is a database, it just doesn’t know it yet.

18 Wherefore and Why Seek and you shall find … well, maybe Seek and you shall find … well, maybe “If you don’t know what you’re looking for, you’ll find it.” “If you don’t know what you’re looking for, you’ll find it.” “If a piece of data is in a computer twice, one of the copies is wrong.” “If a piece of data is in a computer twice, one of the copies is wrong.” The two R’s The two R’s –Retrieval –Redundancy

19 What is a Database? Part 2 Types of Databases: Unstructured (Free-text) Unstructured (Free-text) Flat file (e.g., Excel) Flat file (e.g., Excel) Hierarchical (C:\) Hierarchical (C:\) Relational (Access, MySQL, Oracle) Relational (Access, MySQL, Oracle) Object-oriented (Zope) Object-oriented (Zope)

20 Who and When? DBA = Database Administrator DBA = Database Administrator Anyone with large volumes of data Anyone with large volumes of data Anyone with complex questions Anyone with complex questions Everybody needs databases, they just don’t know it yet Everybody needs databases, they just don’t know it yet

21 Where are they? http://www.travelschlepp.com http://www.travelschlepp.com prius.xls prius.xls Your hard drive Your hard drive EFAC.mdb EFAC.mdb http://freeplone2.openia.com/mmna http://freeplone2.openia.com/mmna Some Examples

22 Demonstration Introduction to MS Access Introduction to MS Access EFAC database EFAC database Terminology Terminology –Tables = spreadsheets –Records = rows –Fields = columns Getting around in Access Getting around in Access http://home.comcast.net/~karlhorak/SQLexercises.mdb

23 Getting Data Out QBE QBE –Drag-and-drop tables, fields, relationships –Visual query builder SQL SQL –Manually created and edited –Text-based SPARQL SPARQL –RDF and XML-based –Web 2.0

24 SQL SELECT SELECT –From –From –Where –Where –Order by –Order by –Group by –Group by –Having –Having –;

25 QBE

26 Exercises and Q&A Download and open the EFAC database Download and open the EFAC database Familiarize yourself with the structure and the data Familiarize yourself with the structure and the data Answer some questions by building queries Answer some questions by building queries

27 Queries 1. Display all data in the table. 2. Display just facility type and country for all items in the table. 3. Display the facility type, capacity, and capacity units for just the facilities in Brazil 4. Display facility type, country, and capacity in kgU/year (hint: capacity is in metric tons, 1000 kg). Include a column that displays the units as "kgU/year".


Download ppt "Database Design 1 CMS 476 Dr. Karl Horak, Instructor."

Similar presentations


Ads by Google