20
Database Basics February 22nd 2016 DTC356

02222016

Embed Size (px)

Citation preview

Page 1: 02222016

Database BasicsFebruary 22nd 2016

DTC356

Page 2: 02222016

Why Do We Need Databases?

• What kinds of problems are databases good at solving?

• When do we need to move from simple physical organization to using a database?

• What does Weinberger say?

Page 3: 02222016

Databases:

• Scale: Databases are good at storing large amounts of information

• Organization: Databases work when there is authority and structure

• Accuracy: Databases (when properly managed) return high precision and recall

• **Within the limits of the database record structure

Page 4: 02222016
Page 5: 02222016
Page 6: 02222016

Filter on the way in

• You need to decide on the record structure first.

• Going through the collection and describing everything according to the record structure is labor intensive.

• Once the database is built, searching is quick and relatively easy.

• Changing the record structure is difficult.

Page 7: 02222016

• TABLE: A collection of records that use the same field structure

• RECORD: The complete collection of data for one item in the database (row)

• FIELD: An item of data for a record (column)

Vocabulary:

Page 8: 02222016

• Unique identifier

• Null

• Key (primary, foreign)

Vocabulary:

Page 9: 02222016

http://www.dtc-wsuv.org/cmdc/requirements.html

In small groups: • develop a database record • choose fields • discuss what tasks users will need to perform

Page 10: 02222016
Page 11: 02222016

Boolean Logic

• Compares the contents of two sets (e.g., fields)

Page 12: 02222016

AND (intersection)

Page 13: 02222016
Page 14: 02222016

OR (union)

Page 15: 02222016
Page 16: 02222016

NOT (relative compliment)

Page 17: 02222016
Page 18: 02222016

More on Boolean Logic & Venn Diagrams http://lib.colostate.edu/howto/others/venn.html

Page 19: 02222016

How to See your Library Database

Page 20: 02222016

Questions to Ask Yourself

• What does a record in this database look like?

• What are the fields in this particular database?

• Can I find a primary key?

• How do I perform operations in this database?