I Copyright © 2009, Oracle. All rights reserved. Introduction.

Slides:



Advertisements
Similar presentations
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Virtual training week 4 structured query language (SQL)
Relational Databases Chapter 4.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
ORACLE Lecture 1: Oracle 11g Introduction & Installation.
10 Copyright © 2004, Oracle. All rights reserved. Creating Other Schema Objects.
8 Copyright © Oracle Corporation, All rights reserved. Manipulating Data.
Managing Schema Objects
Database I. Practice SQL.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Database Lecture # 1 By Ubaid Ullah.
Overview of Database Development
o At the end of this lesson, you will be able to:  Describe the life-cycle development phases  Discuss the theoretical and physical aspects of a relational.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Copyright  Oracle Corporation, All rights reserved. I Introduction.
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.
I Copyright © Oracle Corporation, All rights reserved. Introduction.
I Copyright © 2004, Oracle. All rights reserved. Introduction Copyright © 2004, Oracle. All rights reserved.
11 Copyright © 2007, Oracle. All rights reserved. Creating Other Schema Objects.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
10 Copyright © 2009, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
11 Copyright © Oracle Corporation, All rights reserved. Creating Views.
Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement Insert rows.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Section 04 Lesson 01 Introduction to the Database
4 Copyright © 2007, Oracle. All rights reserved. Manipulating Large Data Sets.
8 Copyright © Oracle Corporation, All rights reserved. Manipulating Data.
6 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
8 Copyright © 2007, Oracle. All rights reserved. Managing Schema Objects.
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,
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Retrieving Data in PL/SQL. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Recognize the SQL statements that can.
1 Copyright © Oracle Corporation, All rights reserved. Writing Basic SQL SELECT Statements.
I Copyright © 2007, Oracle. All rights reserved. Introduction.
I Copyright © 2007, Oracle. All rights reserved. Introduction.
4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Using Data Model Editor to Create Data Models Based on a SQL Query Data Set.
Installation Oracle 11g Express 2 double click the "setup" button to install the Oracle.
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
 CONACT UC:  Magnific training   
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
I Copyright © 2007, Oracle. All rights reserved. Introduction.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
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.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
1 Copyright © 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Insert, update, delete TCL. Data Manipulation Language – A DML statement is executed when you: Add new rows to a table Modify existing rows in a table.
Fundamental of Database Systems
Introduction.
Introduction To Database Systems
Introduction.
Manipulating Data.
Introduction.
SQL 101.
Introduction.
Introduction.
مقدمة في قواعد البيانات
Manipulating Data.
1 Manipulating Data. 2 Objectives After completing this lesson, you should be able to do the following:  Describe each data manipulation language (DML)
Introduction.
Contents Preface I Introduction Lesson Objectives I-2
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:

I Copyright © 2009, Oracle. All rights reserved. Introduction

Copyright © 2009, Oracle. All rights reserved. I - 2 Lesson Objectives After completing this lesson, you should be able to do the following: Define the goals of the course List the features of Oracle Database 11g Discuss the theoretical and physical aspects of a relational database Describe Oracle server’s implementation of RDBMS and object relational database management system (ORDBMS) Identify the development environments that can be used for this course Describe the database and schema used in this course

Copyright © 2009, Oracle. All rights reserved. I - 3 Lesson Agenda Course objectives, agenda, and appendixes used in the course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 4 Course Objectives After completing this course, you should be able to: Identify the major components of Oracle Database 11g Retrieve row and column data from tables with the SELECT statement Create reports of sorted and restricted data Employ SQL functions to generate and retrieve customized data Run complex queries to retrieve data from multiple tables Run data manipulation language (DML) statements to update data in Oracle Database 11g Run data definition language (DDL) statements to create and manage schema objects

Copyright © 2009, Oracle. All rights reserved. I - 5 Course Agenda Day 1: –Introduction –Retrieving Data Using the SQL SELECT Statement –Restricting and Sorting Data –Using Single-Row Functions to Customize Output –Using Conversion Functions and Conditional Expressions Day 2: –Reporting Aggregated Data Using the Group Functions –Displaying Data from Multiple Tables Using Joins –Using Subqueries to Solve Queries –Using the Set Operators

Copyright © 2009, Oracle. All rights reserved. I - 6 Course Agenda Day 3: –Manipulating Data –Using DDL Statements to Create and Manage Tables –Creating Other Schema Objects

Copyright © 2009, Oracle. All rights reserved. I - 7 Appendixes Used in the Course Appendix A: Practices and Solutions Appendix B: Table Descriptions Appendix C: Using SQL Developer Appendix D: Using SQL*Plus Appendix E: Using JDeveloper Appendix F: Oracle Join Syntax Appendix AP: Additional Practices and Solutions

Copyright © 2009, Oracle. All rights reserved. I - 8 Lesson Agenda Course objectives, course agenda, and appendixes used in this course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 9 Oracle Database 11g: Focus Areas Infrastructure Grids Information Management Application Development

Copyright © 2009, Oracle. All rights reserved. I - 10 Oracle Database 11g Manageability High availability Performance Security Information integration

Copyright © 2009, Oracle. All rights reserved. I - 11 Oracle Database 11g Manageability High availability Performance Security Information integration

Copyright © 2009, Oracle. All rights reserved. I - 12 Oracle Fusion Middleware Portfolio of leading, standards-based, and customer-proven software products that spans a range of tools and services from Java EE and developer tools, through integration services, business intelligence, collaboration, and content management User Interaction Portals, Content, Search, Desktop, Mobile, VoIP Business Intelligence ETL, Q&A, OLAP, Reports, Alerts, Real Time Integration & Process Management Messaging, ESB, BPM, B2B, BAM, MDM Application Server Java EE, WS-*, Events, Rules Grid Infrastructure Clusters, Metadata, Registry, Security Systems Management System Application Service Identity Management Directory Provisioning, Single Sign-On, Identity Administration Development Tools SOA Tools & Framework

Copyright © 2009, Oracle. All rights reserved. I - 13 Oracle Enterprise Manager Grid Control Efficient Oracle Fusion Middleware management Simplifying application and infrastructure life-cycle management Improved database administration and application management capabilities

Copyright © 2009, Oracle. All rights reserved. I - 14 Oracle BI Publisher Provides a central architecture for authoring, managing, and delivering information in secure and multiple formats Reduces complexity and time to develop, test, and deploy all kinds of reports –Financial Reports, Invoices, Sales or Purchase orders, XML, and EDI/EFT(eText documents) Enables flexible customizations –For example, a Microsoft Word document report can be generated in multiple formats, such as PDF, HTML, Excel, RTF, and so on. BI PUBLISHER PDF HTML Excel Microsoft Word

Copyright © 2009, Oracle. All rights reserved. I - 15 Lesson Agenda Course objectives, course agenda, and appendixes used in this course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 16 Relational and Object Relational Database Management Systems Relational model and object relational model User-defined data types and objects Fully compatible with relational database Supports multimedia and large objects High-quality database server features

Copyright © 2009, Oracle. All rights reserved. I - 17 Data Storage on Different Media Electronic spreadsheet Filing cabinet Database

Copyright © 2009, Oracle. All rights reserved. I - 18 Relational Database Concept Dr. E. F. Codd proposed the relational model for database systems in It is the basis for the relational database management system (RDBMS). The relational model consists of the following: –Collection of objects or relations –Set of operators to act on the relations –Data integrity for accuracy and consistency

Copyright © 2009, Oracle. All rights reserved. I - 19 Definition of a Relational Database A relational database is a collection of relations or two-dimensional tables. Oracle server Table name: EMPLOYEES Table name: DEPARTMENTS … …

Copyright © 2009, Oracle. All rights reserved. I - 20 Data Models Model of system in client’s mind Entity model of client’s model Tables on disk Oracle server Table model of entity model

Copyright © 2009, Oracle. All rights reserved. I - 21 Entity Relationship Model Create an entity relationship diagram from business specifications or narratives: Scenario: –“... Assign one or more employees to a department...” –“... Some departments do not yet have assigned employees...” EMPLOYEE #* number *name ojob title DEPARTMENT #* number *name olocation assigned to composed of

Copyright © 2009, Oracle. All rights reserved. I - 22

Copyright © 2009, Oracle. All rights reserved. I - 23 Entity Relationship Modeling Conventions Entity: Singular, unique name Uppercase Soft box Synonym in parentheses Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)” EMPLOYEE #* number *name ojob title DEPARTMENT #* number *name olocation assigned to composed of Attribute: Singular name Lowercase Mandatory marked with “*” Optional marked with “o”

Copyright © 2009, Oracle. All rights reserved. I - 24

Copyright © 2009, Oracle. All rights reserved. I - 25 Relating Multiple Tables Each row of data in a table is uniquely identified by a primary key. You can logically relate data from multiple tables using foreign keys. Table name: EMPLOYEES Table name: DEPARTMENTS Primary key Foreign key …

Copyright © 2009, Oracle. All rights reserved. I - 26

Copyright © 2009, Oracle. All rights reserved. I - 27 Relational Database Terminology

Copyright © 2009, Oracle. All rights reserved. I - 28

Copyright © 2009, Oracle. All rights reserved. I - 29 Lesson Agenda Course objectives, course agenda, and appendixes used in this course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 30 Using SQL to Query Your Database Structured query language (SQL) is: The ANSI standard language for operating relational databases Efficient, easy to learn, and use Functionally complete (With SQL, you can define, retrieve, and manipulate data in the tables.) SELECT department_name FROM departments; Oracle server

Copyright © 2009, Oracle. All rights reserved. I - 31 SQL Statements SELECT INSERT UPDATE DELETE MERGE CREATE ALTER DROP RENAME TRUNCATE COMMENT GRANT REVOKE COMMIT ROLLBACK SAVEPOINT Data manipulation language (DML) Data definition language (DDL) Transaction control Data control language (DCL)

Copyright © 2009, Oracle. All rights reserved. I - 32 Development Environments for SQL There are two development environments for this course: The primary tool is Oracle SQL Developer. SQL*Plus command-line interface can also be used. SQL Developer SQL*Plus

Copyright © 2009, Oracle. All rights reserved. I - 33 Lesson Agenda Course objectives, course agenda, and appendixes used in this course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 34 Human Resources ( HR ) Schema DEPARTMENTS department_id department_name manager_id location_id LOCATIONS location_id street_address postal_code city state_province country_id COUNTRIES country_id country_name region_id REGIONS region_id region_name EMPLOYEES employee_id first_name last_name phone_number hire_date job_id salary commission_pct manager_id department_id JOBS job_id job_title min_salary max_salary JOB_HISTORY employee_id start_date end_date job_id department_id

Copyright © 2009, Oracle. All rights reserved. I - 35 Tables Used in the Course EMPLOYEES DEPARTMENTS JOB_GRADES

Copyright © 2009, Oracle. All rights reserved. I - 36 Lesson Agenda Course objectives, course agenda, and appendixes used in this course Overview of Oracle Database 11g and related products Overview of relational database management concepts and terminologies Introduction to SQL and its development environments The HR schema and the tables used in this course Oracle Database 11g documentation and additional resources

Copyright © 2009, Oracle. All rights reserved. I - 37 Oracle Database 11g Documentation Oracle Database New Features Guide 11g, Release 1 (11.2) Oracle Database Reference 11g, Release 1 (11.2) Oracle Database SQL Language Reference 11g, Release 1 (11.2) Oracle Database Concepts 11g, Release 1 (11.2) Oracle Database SQL Developer User's Guide, Release 1.5

Copyright © 2009, Oracle. All rights reserved. I - 38 Additional Resources For additional information about the Oracle Database 11g, refer to the following: Oracle Database 11g: New Features eStudies Oracle by Example series (OBE): Oracle Database 11g –

Copyright © 2009, Oracle. All rights reserved. I - 39 Summary In this lesson, you should have learned that: Oracle Database 11g extends: –The benefits of infrastructure grids –The existing information management capabilities –The capabilities to use the major application development environments such as PL/SQL, Java/JDBC,.NET, XML, and so on The database is based on ORDBMS Relational databases are composed of relations, managed by relational operations, and governed by data integrity constraints With the Oracle server, you can store and manage information by using SQL

Copyright © 2009, Oracle. All rights reserved. I - 40 Practice I: Overview This practice covers the following topics: Starting Oracle SQL Developer Creating a new database connection Browsing the HR tables