LIS 384K.11 Database-Management Principles and Applications

Slides:



Advertisements
Similar presentations
Designing MS-Access Tables
Advertisements

Chapter 10: Designing Databases
The Relational Database Model
The Relational Database Model
Designing a Database Unleashing the Power of Relational Database Design.
The Relational Database Model. 2 Objectives How relational database model takes a logical view of data Understand how the relational model’s basic components.
Keys Chapter 8 Database Design for Mere Mortals. Why Keys Are Important They ensure that each record in a table can be properly identified. They help.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
The Relational Database Model
Concepts and Terminology Introduction to Database.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
The Relational Database Model
Information Systems & Databases 2.2) Organisation methods.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Relational Database: RDB Concepts
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
©G. Millbery 2003File and Database ConceptsSlide 1 Module File and Database Concepts.
Standards and Conventions
1 SQL SERVER 2005 Express CE-105 SPRING 2007 Engr. Faisal ur Rehman.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Microsoft Office Access 2010 Lab 1
Database Constraints Ashima Wadhwa.
Databases Chapter 9 Asfia Rahman.
GO! with Microsoft Office 2016
The Relational Database Model
CHAPTER 7 DATABASE ACCESS THROUGH WEB
IS 130 Information systems 1
Databases Chapter 16.
Practical Office 2007 Chapter 10
Chapter 2: Relational Model
Database Systems Chapter 3 1.
MIS 322 – Enterprise Business Process Analysis
Unit 16 – Database Systems
Database Systems: Design, Implementation, and Management Tenth Edition
GO! with Microsoft Access 2016
Entity-Relationship Model
Chapter 4 Relational Model Characteristics
CIS 207 The Relational Database Model
Database Management Systems
Database Management  .
Translation of ER-diagram into Relational Schema
Databases and Information Management
What is a Database and Why Use One?
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Data Modelling Introduction
The 1:M Relationship (continued)
Relational Database Model
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
LIS 384K.11 Database-Management Principles and Applications
Databases and Information Management
The Relational Database Model
Introduction to Databases & SQL
Spreadsheets, Modelling & Databases
DCT 2053 DATABASE CONCEPT Chapter 2.2 CONTINUE
logical design for relational database
Database Design: Relational Model
Design tools and techniques for a relational database system
Chapter 17 Designing Databases
ICT Database Lesson 2 Designing a Database.
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
Instructor Materials Chapter 5: Ensuring Integrity
Database Systems: Design, Implementation, and Management
Chapter 3 The Relational Model
Presentation transcript:

LIS 384K.11 Database-Management Principles and Applications Tables and Their Components R. E. Wyllys Copyright © 2002 by R. E. Wyllys Last revised 2002 Jan 28 GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Keys1 Superkey Candidate Key Primary Key Secondary Key Foreign Key 1For a detailed discussion of keys, see the Course Note entitled Key Concepts. GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Keys Superkey Candidate Key A key (i.e., a column or combination of columns containing no null values and no duplicate values) that identifies each row uniquely. Candidate Key For Rob and Coronel, a minimal superkey (i.e., a superkey with no subsets that are themselves superkeys) For most writers, any superkey (i.e., any key that identifies each row uniquely) Note: Most writers equate "candidate keys" and "superkeys", and use only the term "candidate keys" GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Keys Primary Key The candidate key (superkey) that has been selected as the preferred key for identifying records in a particular table Provides a unique way to identify each record Can be obvious from the structure of the table. If there is no easy natural choice, you can add a column containing a unique identifier. May consist of one or more columns; multiple columns need not be adjacent A single-column key is called a simple key A multiple-column key is called a composite key May consist of the entire record (especially with two-column tables, which occur often in the development of RDBs) GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Keys Secondary Key Foreign Key A column that is used to aid in the retrieval of information from a table. A secondary key is not required to have unique values in each of its rows, Foreign Key A column that is used to aid in the retrieval of information from one table (i.e., is a secondary key) and that is also the primary key in another table. Foreign keys are a major tool in RDBs. Because of referential integrity, a foreign key should have only values that occur in the table in which it is the primary key. All foreign keys are secondary keys, but not all secondary keys are foreign keys. GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Fields Character Numeric Logical Image Object LBO (Large Binary Object) GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Fields Character: Alphanumeric and punctuation. Character fields can include numerals, but calculations cannot be performed on the contents of the field even though they look like numbers. Examples: Names, product codes, SSNs, ZIPCodes Sometimes further differentiated between memo fields (short) and text fields (long) GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Fields Numeric: Arithmetic operations can be performed on the contents of the field Numbers (sometimes further differentiated among integers [short, long], fixed-decimal point numbers, floating-point numbers) Dates (addition and subtraction only) GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Fields General Rule for Numeric Fields: Never assign a field a numeric data type unless you intend to perform mathematical calculations on its contents. GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

Types of Fields Logical: True-False (T, F), Boolean (0, 1), Yes-No (Y, N) Image: Used for relatively small graphics files (e.g., under 100KB) Object: An object is a package of data together with program code that performs certain functions on the data Large Binary Object: Used for very large items, such as multi-megabyte graphic, audio, and video files; the RDB typically merely stores pointers to the locations of these large files GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications

The World is Full of Files GSLIS - The University of Texas at Austin LIS 384K.11, Database-Management Principles and Applications