Sets and Set Operations A set is an unordered collection of objects called elements Explicit definition Implicit definition Two sets A and B are equal.

Slides:



Advertisements
Similar presentations
Moores Law Co-founder of Intel The number of transistors per square inch on an integrated chip [speed of computing] doubles every 18 months. Accurate for.
Advertisements

Chapter 10: Designing Databases
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Introduction to Databases
CIT 613: Relational Database Development using SQL Introduction to SQL.
MIS DATABASE SYSTEMS, DATA WAREHOUSES, AND DATA MARTS MBNA
CIT 381 What are databases? What are (R)DBMSs? How do we use/access databases? WWW and databases (client server) Who works with databases? History of databases.
Databases. Database Information is not useful if not organized In database, data are organized in a way that people find meaningful and useful. Database.
The Hierarchy of Data Bit (a binary digit): a circuit that is either on or off Byte: 8 bits Character: each byte represents a character; the basic building.
1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
Copyright © 2003 Addison-Wesley Your name here. Copyright © 2003 Addison-Wesley Overview of Information Systems What is the Internet? Why are databases.
Organizing Data Chapter 5. Data Hierachy Table = Entities X Attributes Entities = Records Attributes = Fields.
Your name here The lecture notes are based on using Microsoft Access interactively as part of the lecture.
Sets. Copyright © Peter Cappello Definition Visualize a dictionary as a directed graph. Nodes represent words If word w is defined in terms of word.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Database Management System
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
MIS DATABASE SYSTEMS, DATA WAREHOUSES, AND DATA MARTS MBNA ebay
Intro to MIS – MGS351 Databases and Data Warehouses Chapter 3.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Fundamentals of Information Systems, Fifth Edition
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Simple Database.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
What is a database? Example of database application: –Banks, –Hospital, –etc Extensions: –Multimedia databases –Geographic Information Systems –Data warehouse.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
SQL Structured Query Language Programming Course.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Data Resource Management.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CS 1308 Computer Literacy and the Internet
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2003 Addison-Wesley Timeline for Database Systems Developments before 1960 transition from punched card and tape 1960s, from file management.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Thinking Mathematically
Chapter 2 With Question/Answer Animations. Section 2.1.
CIT 613: Relational Database Development using SQL Introduction to SQL DeSiaMorePowered by DeSiaMore 1.
Discrete Mathematics Set.
Chapter 3: Relational Databases
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Fundamental of Database Systems
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Fundamentals & Ethics of Information Systems IS 201
Chapter 12 Information Systems.
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Session – 2 SETS & Operations of SETS
Data Resource Management
Chapter Sets &Venn Diagrams.
Data Resource Management
Lecture Sets 2.2 Set Operations.
Database SQL.
Presentation transcript:

Sets and Set Operations A set is an unordered collection of objects called elements Explicit definition Implicit definition Two sets A and B are equal if every element in A is also in B and every element in B is also in A (A = B) A is contained in B if every element in A is also an element of B (A  B) Example: Φ  A for every set A

Sets and Set Operations The power set of A, Ρ (A ) is the set of all subsets of A Example: Ρ (Φ ) = { Φ} The cross product of two sets A x B = { (a, b) | a  A and b  B} order is important: A x B  B x A in general (x is not commutative) A relation is a subset of A x B cross product can be generalized

Sets and Set Operations Set operations: Union A  B Intersection A  B Difference A  B Complement ( Universe of discourse )  A Venn diagram

Useful relations | A  B | = |A| + |B| - |A  B| DeMorgan’s law co(A  B) = co(A)  co(B) DeMorgan’s law can be generalized

Propositions A proposition P is a statement that is either true or false Example P : It is raining today in Chicago Compound propositions and their truth values P or Q (P V Q), P and Q (P Λ Q), not P (¬P, or  P), P  Q, P  Q

Propositions DeMorgan’s laws ¬(P 1 V … V P n ) = (¬P 1 ) Λ … Λ (¬P n ) ¬ (P 1 Λ … Λ P n ) = (¬P 1 ) V … V (¬P n )

Databases A database is a system that allows storage and manipulation of information A database management system (DBMS) is a combination of hardware and software that allows organization and manipulation of the information

Databases Why are databases important? databases vs. Archiving, large size of data, quick access and manipulation How and why are databases used? 1.DB models aspects of the real world 2.Collection of data logically coherent Meaningful 3.Designed for specific purpose

Uses of Databases Traditional (airline reservation, school, hospital, …) Online Shopping Search Engines Genetic Databases Geographical Information Systems

Sizes of Database Personal (1 User), Megabytes Workgroup (<25 Users), Megabytes Organizational ( s), Gigabytes Internet ( s), Terabytes

How do database represent Info. The physical database: a collection of files containing the data content The schema: a specification of the physical database’s information content and logical structure The database engine: software that lets people access and modify the database contents The data definition and manipulation languages: SQL (Structured Query Language)

Relational database manag. Systems (RDBMS) RDBMS Tables of data Schema Name of table Names and types of attributes Contents Row is a fact Attribute value is a characteristic

Example Customer table accountIdLast N.First N. 101BlockJane 102HamiltonCherry 103HarrisonKate 104BreauxCarroll Logical description (Schema) Customer (accountId, lastName, firstName) Table creation statement create table Customer (accountId integer, lastName char(20), firstName char(20))

Client/Server Interaction