SQL, PL/SQL FALL Semester 2013

Similar documents
1. INTRODUCTION TO RDBMS

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

- Eliminating redundant data - Ensuring data dependencies makes sense. ie:- data is stored logically

Basic Concepts of Database Systems

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: DATABASE MANAGEMENT (Code: ) Information Technology

7. Databases and Database Management Systems

Oracle 10g PL/SQL Training

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

Relational Database Basics Review

Oracle USF

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

Database 10g Edition: All possible 10g features, either bundled or available at additional cost.

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:

Database Management System

BCA. Database Management System

IT2305 Database Systems I (Compulsory)

CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY

Introduction to Databases

Overview of Database Management Systems


1 File Processing Systems

10. Creating and Maintaining Geographic Databases. Learning objectives. Keywords and concepts. Overview. Definitions

IT2304: Database Systems 1 (DBS 1)

Oracle Database: SQL and PL/SQL Fundamentals

Database as a Service (DaaS) Version 1.02

COMPONENTS in a database environment

Scheme G. Sample Test Paper-I

Oracle Database: Introduction to SQL

C HAPTER 4 INTRODUCTION. Relational Databases FILE VS. DATABASES FILE VS. DATABASES

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Database System Architecture & System Catalog Instructor: Mourad Benchikh Text Books: Elmasri & Navathe Chap. 17 Silberschatz & Korth Chap.

Oracle Database: Introduction to SQL

Database Management. Technology Briefing. Modern organizations are said to be drowning in data but starving for information p.

Oracle Database: SQL and PL/SQL Fundamentals NEW

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML?

Oracle(PL/SQL) Training

2. Basic Relational Data Model

David M. Kroenke and David J. Auer Database Processing 11 th Edition Fundamentals, Design, and Implementation. Chapter Objectives

ATTACHMENT 6 SQL Server 2012 Programming Standards

Databases What the Specification Says

Foundations of Information Management

MySQL for Beginners Ed 3

DATABASE MANAGEMENT SYSTEMS

Part 2 - The Database Environment

DBMS / Business Intelligence, SQL Server

Oracle Database: SQL and PL/SQL Fundamentals NEW

VBA and Databases (see Chapter 14 )

Introduction. Introduction: Database management system. Introduction: DBS concepts & architecture. Introduction: DBS versus File system

Oracle Database: Program with PL/SQL

Database Programming with PL/SQL: Learning Objectives

Oracle Database 10g: Introduction to SQL

In This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina

Fundamentals of Database Design

Introduction: Database management system

ORACLE DATABASE 11G: COMPLETE

Real-Time Database Protection and. Overview IBM Corporation

Relational Databases for the Business Analyst

Oracle Database: SQL and PL/SQL Fundamentals

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

Relational Databases. Christopher Simpkins

IBM WebSphere DataStage Online training from Yes-M Systems

Oracle 11g PL/SQL training

Oracle Database: Introduction to SQL

What is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World

Oracle Database 12c: Introduction to SQL Ed 1.1

3. Relational Model and Relational Algebra

Relational Data Analysis I

Toad for Oracle 8.6 SQL Tuning

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Oracle Database 11g SQL

Using SAS as a Relational Database

MS SQL Server DBA Training Course. Table of Contents

Oracle SQL. Course Summary. Duration. Objectives

SQL AND DATA. What is SQL? SQL (pronounced sequel) is an acronym for Structured Query Language, CHAPTER OBJECTIVES

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

David M. Kroenke and David J. Auer Database Processing 12 th Edition

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

B.Sc. (Computer Science) First Year

INTRODUCING ORACLE APPLICATION EXPRESS. Keywords: database, Oracle, web application, forms, reports

Database Administration with MySQL

Conventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)

Foundations of Information Management

Oracle DBA Course Contents

FileMaker 11. ODBC and JDBC Guide

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

Database Management Systems

Big Data Development CASSANDRA NoSQL Training - Workshop. March 13 to am to 5 pm HOTEL DUBAI GRAND DUBAI

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Oracle Database Development Standards For DNR Staff and Contractors. Table of Contents

and what does it have to do with accounting software? connecting people and business

Tutorial on Relational Database Design

Chapter 14: Databases and Database Management Systems

Transcription:

SQL, PL/SQL FALL Semester 2013

Rana Umer Aziz MSc.IT (London, UK) Contact No. 0335-919 7775 enquire@oeconsultant.co.uk

EDUCATION CONSULTANT Contact No. 0335-919 7775, 0321-515 3403 www.oeconsultant.co.uk

Book SQL, PL/SQL The Programming Language of Oracle Third Edition By Ivan Bayross Course Outline Chapter 1 Database Concepts Chapter 2 Installation of Oracle 9i Chapter 3 Post Installation Steps Chapter 5 A Business Model for Retail Banking Chapter 7 Interactive SQL Chapter 11 SQL Performance Tuning Chapter 12 Security Management Using SQL Chapter 14 Advance Features in SQL * Plus Chapter 15 Introduction to Pl/SQL Chapter 18 PL/SQL Database Objects Terminal Exam Required 8 Question out of 12

What is Memory? What is Store? What is Knowledge? What is Base? What is Data? What is Information? What is Database? How you recall the Data/Information

What is Management? What is System? What is Relationship/Relation? What is Summarize/Normal/Simple?

What is Communication? What is Language? What is Database Language?

Database A Database is collection of meaningful Data that is organized so that it can easily be accessed, managed, and updated.

A Database Management System (DBMS) is a program that lets one or more computer users create and access Data in a Database. The DBMS Manages User Requests Where the data is physically located & Build on storage media. Make sure the Security & Access Privileges. Relationship between Database. DBMS are, SQL Server, Oracle, Sysbase, MySQL, MS-Access & So many more. Database Management System

DBMS Benefits Redundancy can be reduced. Inconsistencies Shard Data Standards Integrity (Accuracy And Consistency Data Stored) Security Independence (Multiple use)

A Relational Database is a collection of Data items organized as a set of formally-described Tables from which data can be accessed or re-assembled in many different ways without having to re-organize the Database Tables. The Relational Database was invented by Edgar. F. Codd at IBM in 1970. Relational DBMS RDBMS stores data in the form of related tables. Requires few assumption How data is related How it will be extracted from Database(Viewed in many ways) Single Database can be spread across several tables. Relational Database

DBMS Relationship between two tables or files maintained by programmed. Dose not Support Client/Server Architecture. Dose not Support Distributed Databases No much Secure Each Tables is given as extension in DBMS Naming Conventions Field Record File DBMS V/S RDBMS RDBMS Relationship between two tables or files can be specified at the time of table creation. RDBMS Supports Client/ Server Support Distributed Databases More Secure Logging at O/S level Command Level Object level Many Tables are grouped in one database in RDBMS. Naming Conventions Column, Attributes Row, Tuple, Entity Table, Relation, Entity Class

Database Keys A key is a field that you use to sort data. It can also be called a key field There are three main types of keys, 1.Primary keys 2.Foreign keys. 3.Candidate keys

Primary keys Database Keys

Foreign keys Database Keys

Candidate keys Database Keys

Database Keys Some others Keys, Alternate Key Compound Key (Easily Handled In Live Forms) Composite Key (Composite primary keys are generated when no PK (primary key) is designated in the database at time of import) Bothe keys consists of more than one field to uniquely identify a record.

What are the issues we have?

Database Normalization Database Normalization is the process of removing Redundant Data from your tables in to improve storage efficiency, data integrity, and scalability (function in well manor) There are three normal forms: 1NF 2NF 3NF. 3NF is widely considered to be sufficient for most applications.

First Normal Form

Database Normalization 1 st Normal Form Each field contains the smallest meaningful value No Repeating Groups All the key attributes are define. All attributes are dependent on Primary Key

First Normal Form

Database Normalization 2 nd Normal Form Its should be in 1 st Normal Form It include no partial dependencies on its Primary Key

Database Normalization 2 nd Normalization Publisher Table Book Table

3 rd Normal Form Database Normalization Should be in 2 nd Normal Form Records do not depend on anything other than a table's primary key

Third Normal Form Subject Table Author Table Book Table

Database Normalization Convert it up to 3 rd Normal Form

Employee, Department, and Time Card Data in Three Tables Table: Employees Normalize form Table: Departments EmpNo EmpFirstName EmpLastName DeptNo DeptNo DeptName 10 Thomas Arquette 20 10 Accounting 500 Alan Cook 50 20 Marketing 700 Ernest Gold 50 50 Shipping 99 Janice Smitty 10 Table: Time Card Data TimeCardNo EmpNo TimeCardDate 106 10 11/02/2002 107 500 11/02/2002 108 700 11/02/2002 115 10 11/09/2002 Primary Key 116 700 11/09/2002

SQL (Structured Query Language) 1970 by IBM Language SQL is used to communicate with a database. It is the standard language for Database Management Systems. SQL*Plus is the most basic Oracle Database utility, with a basic command-line interface, commonly used by users, administrators, and programmers. PL/SQL (Procedural Language /SQL) is an extension to SQL, incorporating many if the design features of programming languages.

SQL (Structured Query Language) Components of SQL: DDL (Data Definition Language) DML (Data Manipulation Language) DCL (Data Control Language) DQL (Data Query Language)

SQL (Structured Query Language) Components of SQL: DDL (Data Definition Language) Create, Alter, Drop, Grant DML (Data Manipulation Language) Insert, Update, Delete, DCL (Data Control Language) Commit, Rollback, Savepoint, DQL (Data Query Language) Select Retrieve data from the database

Database Administrator A Database Administrator (DBA) is a person responsible for the Installation Configuration Upgrade Administration Monitoring Maintenance of Databases in an organization.

Database Administrator A Data Administrator (DA) is a person responsible for the Defining Data elements Data names and their relationship How to install and configure the RDBMS applications Find out the requirements of the software application in terms of functions and assure the data integrity. They are also known as Data Analyst.

Database Management System Discuss Preston Attendance System