© Virtual University of Pakistan Database Management System Lecture - 24.

Slides:



Advertisements
Similar presentations
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Advertisements

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.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 4-1 David M. Kroenke Database Processing Chapter 2 Structured Query Language.
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Introduction to Database Processing
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-1 David M. Kroenke’s Chapter One: Introduction Part One Database Processing:
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Lecture 1: Introduction to Relational.
3-1 Chapter 3 Data and Knowledge Management
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Concepts of Database Management Seventh Edition
Oracle SQL*plus John Ortiz. Lecture 10SQL: Overview2 Overview  SQL: Structured Query Language, pronounced S. Q. L. or sequel.  A standard language for.
Database Management COP4540, SCS, FIU An Introduction to database system.
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Database Management System Lecture 2 Introduction to Database management.
Nichelle K. Norris IS 373: World Wide Web Standards.
Database Lecture # 1 By Ubaid Ullah.
Concepts of Database Management Sixth Edition
CSC271 Database Systems Lecture # 30.
Chapter 6: Introduction to SQL
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
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
CIS 103 — Applied Computer Technology Last Edited: September 17, 2010 by C.Herbert Using Database Management Systems.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
CHAPTER 6: INTRODUCTION TO SQL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 6: Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 6: Introduction to SQL Modern Database Management 10 th Edition Jeffrey A. Hoffer,
1 Structured Query Language (SQL) CIS*2450 Advanced Programming Concepts.
Computer Security: Principles and Practice
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
10/16/2015 1Yan Huang - Introduction Chapter 1: Introduction What is a DBMS? What is a DBMS? A little history of DB A little history of DB Major Components.
Chapter 15 Relational Implementation with DB2 David M. Kroenke Database Processing © 2000 Prentice Hall.
© Pearson Education Limited, Chapter 15 Physical Database Design – Step 7 (Consider Introduction of Controlled Redundancy) Transparencies.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Fundamentals of Information Systems, Seventh Edition 1 Chapter 3 Data Centers, and Business Intelligence.
Dr. Chen, Data Base Management Chapter 6: Introduction to SQL Jason C. H. Chen, Ph.D. Professor of MIS School of Business Administration Gonzaga University.
Copyright © Curt Hill SQL The Intergalactic Standard Database Query Language.
1.1 CAS CS 460/660 Relational Model. 1.2 Review E/R Model: Entities, relationships, attributes Cardinalities: 1:1, 1:n, m:1, m:n Keys: superkeys, candidate.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Tutorial 6 SQL Muhammad Sulayman
Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 6: Introduction to SQL Modern Database Management 11 th Edition Jeffrey A.
Chapter 9 Query-by-Example Pearson Education © 2009.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
BY SATHISH SQL Basic. Introduction The language Structured English Query Language (SEQUEL) was developed by IBM Corporation, Inc., to use Codd's model.
Databases: An Overview Chapter 7, Exploring the Digital Domain.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
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.
UNIVERSITAS MUHAMMADIYAH SURAKARTA DATABASE MANAGEMENT SYSTEM - INTRODUCTION.
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,
SQL Overview Structured Query Language. Description  When Codd first described the theory of relational databases, he asserted that there should be a.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
CIT 613: Relational Database Development using SQL Introduction to SQL DeSiaMorePowered by DeSiaMore 1.
1 A Very Brief Introduction to Relational Databases.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 6: INTRODUCTION.
SQL Basics Review Reviewing what we’ve learned so far…….
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.
Introduction to Database Programming with Python Gary Stewart
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:

© Virtual University of Pakistan Database Management System Lecture - 24

© Virtual University of Pakistan Vertical Partitioning  Same table is split into different physical records; depending on the nature of accesses  PK is repeated in all vertical partitions of a table to get the original table

© Virtual University of Pakistan Vertical Partitioning  STD(stId, sName, sAdr, sPhone, cgpa, prName, school, mtMrks, mtSubs, clgName, intMarks, intSubs, dClg, bMarks, bSubs)  STD(stId, sName, sAdr, sPhone, cgpa, prName)  STDACD(sId, school, mtMrks, mtSubs, clgName, intMarks, intSubs, dClg, bMarks, bSubs)

© Virtual University of Pakistan Replication  Final form of denormalization  Data duplicated  Increases the access speed and failure damage  Entire table or part of table can be replicated

© Virtual University of Pakistan Replication Example  Generally adopted where updation is not very frequent  In PROJ-EMP we replicate the data with both the PROJ and EMP tables so on the cost of extra storage both tables have the related data

© Virtual University of Pakistan Clustering Files  Clustering means to place records from different tables to place in adjacent physical locations, called clusters  Increases efficiency since related records are placed close to each other

© Virtual University of Pakistan Clustering Files  Clustering is also suitable to relatively static situations  Define cluster, define the key of the cluster, include the tables into the cluster while creating associating the key with it

© Virtual University of Pakistan Other Related Issues  To be discussed later during storage concepts discussion –File structures –Indexes –RAID

© Virtual University of Pakistan Summary of Physical DB Design

© Virtual University of Pakistan Structured Query Language (SQL)

© Virtual University of Pakistan Introduction  Also pronounced as “Sequel”  A de-facto standard for relational DBMS  Standard accepted by bodies like ANSI and ISO

© Virtual University of Pakistan Introduction  First commercial DBMS that support SQL in 1979 was Oracle  Another form of query language is Query-by-Example (QBE) supported by PC-based DBMSs

© Virtual University of Pakistan History  Relational data model introduced by Codd in 1970  A relational DBMS project started by IBM was system R that included sequel as manipulation language

© Virtual University of Pakistan History  First commercial DBMS launched was Oracle in 1979  Other early DBMSs DB2, INGRES  ANSI and ISO defined first standard of SQL in 1986 known as SQL-86 that was further extended to SQL-89

© Virtual University of Pakistan History  Later two more standards known as SQL- 92 and SQL-99 were defined  Almost all of the current DBMSs support SQL-92 and many support SQL-99 partially or completely  SQL today is supported in all sort of machines

© Virtual University of Pakistan Benefits of Standard SQL  Reduced training cost  Application portability  Application longevity  Reduced dependence on a single vendor  Cross-system communication

© Virtual University of Pakistan SQL  SQL is used for any type of interaction with the database through DBMS  Right from creating database, tables, views, users  Insertion, updation, deletion of data in the database

© Virtual University of Pakistan SQL and DBMSs  Implementation of SQL always includes the flavor of the particular DBMS, like in names of data types  Proprietary SQLs exist, like T- SQL and PL-SQL

© Virtual University of Pakistan MS SQL Server  The DBMS for our course is Microsoft’s SQL Server 2000 desktop edition  Two main tools Query Analyzer and Enterprise Manager; both can be used  For SQL practice we will use QA

© Virtual University of Pakistan Terminology of SS  Instance of SQL Server  Instance contains different objects like databases, security, DTS etc.  Then databases object of SS contains multiple databases, each database contains multiple objects like tables, views, users, roles etc.

© Virtual University of Pakistan Working in SS  After installing SS, we will create database using create command  After this we will create tables and other objects within this database

© Virtual University of Pakistan Database Management System Lecture - 24