chapter 4 - part 1

# chapter 4 - part 1 - CGS 2545: Database Concepts Spring...

This preview shows pages 1–7. Sign up to view the full content.

CGS 2545: Database Concepts (Chapter 4) Page 1 © Dr. Mark Llewellyn CGS 2545: Database Concepts Spring 2012 Chapter 4 – Logical Database Design And The Relational Data Model (Part 1) Department of Electrical Engineering and Computer Science Computer Science Division University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cgs2545/spr2012

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CGS 2545: Database Concepts (Chapter 4) Page 2 © Dr. Mark Llewellyn • The relational data model is based on the concept of mathematical relations. • Codd (the guy who proposed the relational model) was a trained mathematician and he used terminology taken from this discipline, primarily set theory and predicate logic. The Relational Data Model
CGS 2545: Database Concepts (Chapter 4) Page 3 © Dr. Mark Llewellyn Relation: A relation is a table (matrix) with rows and columns. Relations hold information about the objects modeled in the db. Attribute: An attribute is a named column of a relation. An attribute is some characteristic of an entity (or relationship) that is modeled in the database. Attributes can appear in any order in a relation. Domain: A domain is the set of allowable values for one or more attributes. Every attribute is defined on some domain. Domains may be distinct for each attribute, or two or more attributes may be defined on the same domain. The Relational Data Model (cont.)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CGS 2545: Database Concepts (Chapter 4) Page 4 © Dr. Mark Llewellyn Tuple: A tuple is a row of a relation. Tuples can appear in any order in a relation and the relation will remain the same, and therefore convey the same meaning. Degree: The degree of a relation is the number of attributes it contains. Cardinality: The cardinality of a relation is the number of tuples it contains. Relational database: A collection of normalized relations with distinct relation names. The Relational Data Model (cont.)
CGS 2545: Database Concepts (Chapter 4) Page 5 © Dr. Mark Llewellyn An Example Relation staffNo fName lName position DOB salary sn24 Kristy Chivotti manager 1-Oct-64 45000 sa3 Tod Spaude ceo 16-Nov-56 90000 sn69 Debi Alonzo cfo 14-Mar-72 67000 sf22 Michael Schumacher driver 3-Jun-77 9999999 sd8 Keri Thompson manager 5-Jun-78 34000 sx99 Julie Bledsoe manager 16-Dec-63 40000 staff relation attributes degree cardinality

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
(Chapter 4) Page 6 © Dr. Mark Llewellyn Example Domain Definitions Attribute Domain Name Meaning Domain Definition staffNo staffnumbers set of all possible staff numbers character: size 4, must begin with letter s. fName, lName name set of all possible person names character: size 20 DOB date date person was born date: range from 1-Jan-20, format: dd-mmm-yy salary salaries possible values of staff salaries monetary: 7 digits, range 10,000- 9,999,999 position alljobs set of all possible positions select one from set: {ceo, cfo, coo,manager, asst. manager, driver, secretary}
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/15/2012 for the course CGS 2545 taught by Professor Markllewellyn during the Spring '10 term at University of Central Florida.

### Page1 / 53

chapter 4 - part 1 - CGS 2545: Database Concepts Spring...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online