Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Databases MMG508. DB Properties  Definition of a database: “A database is a collection of interrelated data items that are managed as a single unit”
By RUPESH KUMAR.  Database? Types? Abstraction?  Database Models?  Database Integrity?  ACID?  RDBMS?  Normalization?  Data Warehouse?  Database.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
CIT 613: Relational Database Development using SQL Introduction to SQL.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Databases. Database Information is not useful if not organized In database, data are organized in a way that people find meaningful and useful. Database.
Client/Server Databases and the Oracle 10g Relational Database
Database Management: Getting Data Together Chapter 14.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Lecture 1: Introduction to Relational.
MI807: Database Systems for Managers Introduction –Course Goals & Schedule –Logistics –Syllabus Review Relational DBMS Basics –RDBMS Role in Applications.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
System Analysis and Design
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
Database Design Overview. 2 Database DBMS File Record Field Cardinality Keys Index Pointer Referential Integrity Normalization Data Definition Language.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to Database
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Database Lecture # 1 By Ubaid Ullah.
44220: Database Design & Implementation Logical Data Modelling Ian Perry Room: C48 Tel Ext.: 7287
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Module Title? DBMS Introduction to Database Management System.
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 1 DATABASE SYSTEMS (Cont’d) Instructor Ms. Arwa Binsaleh.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
Introduction to Databases A line manager asks, “If data unorganized is like matter unorganized and God created the heavens and earth in six days, how come.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
1 Client/Server Databases and the Oracle Relational Database.
Section 05Concepts Of DBMS1 HSQ - DATABASES & SQL And Franchise Colleges 05 Concepts of DBMS By MANSHA NAWAZ.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Module 1: Database System
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Nic Shulver Chris Introduction to databases Introduction Storage Temporary and Permanent Unstructured.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
Introduction to Oracle In June 1970,Dr E.F.Codd’s a published A paper entitled A relational model of Data for large shared data banks. This relational.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
1 Ch. 1: Sharing Knowledge and Success  Oracle is an Object-Relational Database (ORDBMS).  RDBMS allows you to put the data in, keep the data, get it.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
Introduction to Information and Computer Science
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
CIT 613: Relational Database Development using SQL Introduction to SQL DeSiaMorePowered by DeSiaMore 1.
Database Systems Logical Data Modelling Tutor:Ian Perry Tel: Web:
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
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.
© Virtual University of Pakistan Database Management System Lecture - 24.
“Introduction To Database and SQL”
The Context of Database Management
“Introduction To Database and SQL”
MANAGING DATA RESOURCES
Introduction to Relational Databases
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI Introduction to Relational Databases

Dale Roberts 2 Sharing Knowledge and Success Oracle is a relational database management system (RDBMS). A DBMS allows users to... put data in keep/manage the data get data out and work with it

Dale Roberts 3 Disadvantages of traditional file processing systems… uncontrolled redundancy inconsistent data inflexibility limited data sharing poor enforcement of standards low programmer productivity excessive program maintenance An DBMS deals with these problem my introduction… Concurrency control and locking Transaction processing Read-consistency Database Management

Dale Roberts 4 Hierarchical Data Model (IMS) nested sets of 1:1 or 1:M relationships Network Data Model (IDMS, TOTAL) multiple sets of 1:1, 1:M, M:1, or M:N relationships Relational Data Model (Oracle, SQL Server, DB2, mySQL) A Relational DBMS expresses data in terms of a “relation” or a table consistent of named columns with data organized into rows. relationships are NOT physically implemented uses primary keys to represent associations terminology: relations (tables), columns, tuples (rows), domain, degree, cardinality, primary keys, concatenated keys, alternate keys, foreign keys, Referential Integrity or R.I. relational algebra, three main operators: select, project, join normalization theory:1NF, 2NF, 3NF Database Management: Data Models

Dale Roberts 5 The Language of Oracle: SQL –Structured Query Language, English like query language –keywords: select, from, where, and order by –Example query: select city, temperature from weather where temperature > 80 order by temperature; Examples of relational databases –stock tables in newspaper –sports scores –100 year example in book Sharing Knowledge and Success

Dale Roberts 6 History of SQL The paper, “A Relational Model of Data for large Shared Data Banks,” by Dr. E. F. Codd, was published in June 1970 in … Communications of the ACM. Codd’s model is now accepted as the definitive model for relational database management systems (RDBMS). The language, Structured English Query Language (SEQUEL) was developed by IBM to use Codd’s model. SEQUEL later became SQL. In 1979, Relational Software, Inc. (now Oracle Corporation) introduced the first commercially available implementation of SQL. Today, SQL is accepted as the standard RDBMS language.

Dale Roberts Client-Server Architecture 7 In the Oracle database system environment, the database application and the database are separated into two parts: a front-end or client portion, and a back-end or server portion—hence the term client/server architecture. Client and server are located on different computers, and these computers are connected through a network. The server and clients of an Oracle database system communicate through Oracle Net Services, Oracle's network interface. SQL

Dale Roberts 8 It looks very easy to use a RDBMS –learning about normalization, SQL, etc. make for instant “experts.” –lack of experience with major production systems can create catastrophic project failures. Testing cycles are getting shorter –newer development tools make software development quicker, usually systems testing gets shortened. Recent college grads... –least experienced developers usually have more training with relational database technology. –veteran developers are busy with older projects. The Dangers in a Relational Database

Dale Roberts 9 Bad Examples of Table and Column Names Tables DEPTEMPEMPSMYEMPS PEPROJTITLESPERSONNEL Columns AD1AU_LNAMEAU_ORDBLOC CDLEXPDEPTNODNAMEDISCOUNTTYPE EMPNOENAMEENUMBERESAL HIGHQTYHIRANGELORANGELOWQTY NOTEORD_NUMPNAMEPROJNO PUBDATEQTYOHSLSTAXPCTWORKHRS Reasons –abbreviation used without good reason –inconsistent abbreviations, underlines, and use of plurals –purpose not apparent from name –name rules have limitations The Dangers in a Relational Database

Dale Roberts 10 Use English Name for Data: Poor Example: Better Example: The Dangers in a Relational Database

Dale Roberts 11 The Basic Parts of Speech in SQL SQL is a language. Oracle SQL is a superset of the American National Standards Institute (ANSI) and the International Standards Organization (ISO) SQL92 standard at entry level conformance. PL/SQL is Oracle’s procedural language extension to SQL. It allows you to link several SQL commands through procedural language. SQL*Plus (SQLPLUS from command line) is a tool that allows users to interact with Oracle. SQL*Plus enables you to manipulate SQL commands and PL/SQL blocks, and to perform many additional tasks as well. Through SQL*Plus, you can: –enter, edit, store, retrieve, and run SQL commands and PL/SQL blocks –format, perform calculations on, store, and print query results in the form of reports –list column definitions for any table –access and copy data between SQL databases –send messages to and accept responses from an end user

Dale Roberts 12 Ten Commandments (suggestions?) 1. Include Users. Put them on the project team, teach them SQL. 2. Name tables, columns, data with users. Develop application thesaurus to ensure consistency. 3. Use English words. 4. Don’t mix levels in naming. 5. Avoid codes and abbreviations. 6. Use meaningful keys. 7. Decompose overloaded keys. 8. Analyze and design from the tasks, not just the data. Normalization is not design. 9. Move tasks from users to the machine. 10. Don’t be seduced by development speed. Take time in analysis, design, testing, tuning.

Dale Roberts 13 Acknowledgements McFadden and Hoffer, Database Management, pp Loney, Oracle Database 10g The Complete Reference Oracle® Database Concepts 10g Release 2 (10.2)