Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling...
-
Upload
aldous-ross -
Category
Documents
-
view
212 -
download
0
Transcript of Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling...
![Page 1: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/1.jpg)
Data at the Coreof the Enterprise
![Page 2: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/2.jpg)
Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of
database systems
![Page 3: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/3.jpg)
DATA
INFORMATION
?
![Page 4: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/4.jpg)
Attributes of data Sharable Moveable Secure Accurate Timely Relevant
![Page 5: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/5.jpg)
Data hierarchy Bits Characters Fields (columns) Records (rows) Files (table) Database
![Page 6: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/6.jpg)
Why build a database? Handle large amounts of data Satisfy multiple users Make information retrieval faster Make data input faster Provide greater accuracy
![Page 7: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/7.jpg)
Database versus Database Management System (DBMS) Database is a self-describing collection
of integrated files A DBMS is a complex computer
program that acts as a data librarian, supervising the transfer of data between the end user and the database
![Page 8: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/8.jpg)
Advantages of DBMS More info from the same data Reduction of data duplication Improved data integrity Programs are independent of the data
format Sharing of data resources
![Page 9: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/9.jpg)
…and disadvantages Added expense More hardware may be needed If it crashes…. Sophisticated design and programming
required Additional training Security is critical
![Page 10: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/10.jpg)
Relational model Relation? Attribute? Tuple? Keys
Primary and foreign
Referential integrity Relational algebra
![Page 11: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/11.jpg)
Relational DB rules
Every row must have exactly the same number of columns (fields or attributes)
Each row can have only one value stored in each column (fields or attributes)
A column must contain the same kind of value in every row of that column
No two rows can be exactly the same The order of the rows or of the columns can’t
be used to provide information
![Page 12: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/12.jpg)
Terminology
Data Processing
InformalRelational DB
Formal Relational DB
File
Table
Relation
Record Row Tuple
Field Column Attribute
![Page 13: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/13.jpg)
![Page 14: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/14.jpg)
Data modeling Purpose: control and visualization Process: gathering requirements Results: forms and diagrams
![Page 15: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/15.jpg)
Normalization Purpose:
Avoid anomalies Reduce redundancy
Process: Successive application of rules Bottom-up (data drives process) Move from first through fifth normal form Does it make more or less tables?
![Page 16: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/16.jpg)
![Page 17: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/17.jpg)
Entity relationship modeling List the entities or objects in the
environment People, things, transactions
Describe the relationship between them A single row in table A can be related to
how many rows in table B (one or many) A single row in table B can be related to
how many rows in table A (one or many)
![Page 18: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/18.jpg)
ERD questions What are the subjects/objects of the
business?data entities
What unique characteristic(s) distinguishes each object from others of same type?
primary key
What characteristics describe each object?attributes
How do you use this data?controls & meaning
![Page 19: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/19.jpg)
ERD questions Over what period of time are you interested in
this data? cardinality & time dimensions
Are all instances of each object the same?supertypes, subtypes, aggregations
What events occur that imply associations between objects? relationships (cardinality & degree)
Is each activity or event always handled the same way or are there special circumstances?
integrity rules, cardinality, time
![Page 20: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/20.jpg)
![Page 21: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/21.jpg)
SQL Definition (DDL)
CREATE, ALTER, DROP
Manipulation (DML) SELECT, INSERT, UPDATE, DELETE
What’s the most used sql command?
![Page 22: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/22.jpg)
General format of SELECT
SELECT [DISTINCT] item(s) FROM table(s) [WHERE condition] [GROUP BY columns] [HAVING condition] [ORDER BY row(s)]
![Page 23: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/23.jpg)
Current RDBMS
Emerging data requirementsComplex
Simple
Unstructured Structured
Audio StreamsImages
Video Streams
Text
GraphicsAudio
Spatial Data
Time Series
HTML/SGML
Video
![Page 24: Data at the Core of the Enterprise. Objectives Define of database systems Introduce data modeling and SQL Discuss emerging requirements of database.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d995503460f94a838a5/html5/thumbnails/24.jpg)
Summary Defined of database systems Introduced data modeling and SQL Discussed emerging requirements of
database systems