SlideShare a Scribd company logo
1 of 47
Session Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
DATA MODEL   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Data base management systems follow particular models (known as database models) to store and manipulate data.  A  data base model  is characterized by: 1.  The way it stores data : STRUCTURE 2.  The way data in the    structure are manipulated:  OPERATIONS Database Systems Models
Choosing Data Model ,[object Object],[object Object]
MAJOR  DATABASE  MODELS : HIERARCHICAL  MODEL NETWORK  MODEL  RELATIONAL  MODEL OBJECT ORIENTED  MODEL Note:  Currently, Relational Model is  most popular. Our class will focus on  Relational DBMS.
Evolution of Database Model Limitations Searching for records Data Redundancy Data Inconsistency  Index ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Data in books and registers   Manual databases   FLAT FILE Indexed file
Hierarchical Database Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Evolution of DB Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Database models ,[object Object],[object Object],[object Object],Traditional files Hierarchical Network Object oriented Object-relational ,[object Object],Client Oriented ? ,[object Object],Relational
Evolution of DB Systems
Hierarchical Database Model
DEPARTMENT EMPLOYEE PROJECT SKILL DEPENDENT EQUIPMENT Hierarchical Database Model
Models and Schemas ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Student(studno,name,address) Course(courseno,lecturer) Student(123,Bloggs,Woolton) (321,Jones,Owens) Schema Instance
Characteristics of Hierarchical DBMS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],Drawbacks :
Network Database Model ,[object Object],[object Object],[object Object]
DEPARTMENT EMPLOYEE PROJECT DEPENDENT EQUIPMENT Network Database Model
Characteristics of Network DBMS ,[object Object],[object Object],[object Object],[object Object]
File Based Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Relational Systems ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Relational database:Definitions ,[object Object],[object Object]
Relational Database definition All information must be represented explicitly in one and only one way: as values in tables and each & every datum in the database must be accessible by specifying a table name, a column name, and a primary key.
Relational Database:  Definitions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Relational Model   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
[object Object],[object Object],[object Object],[object Object],[object Object]
TABLE (Relation) Primary Key Degree Attributes Cardinality Tuples Islamabad 25 Nasir S5 Lahore 34 Abdul S4 Karachi 40 Azmat S3 Islamabad 10 Zafar S2 Lahore 20 Kamran S1 City Quantity SName SCode Supplier Domain Domain
Member of a relation type (set / table). All attribute names must be unique within a table / relation. A set of all possible values that can be attain by an attribute. Values currently contained in an attribute. Number of attributes in a relation / table. Rows in a table / relation. Number of tuples in a relation / table. Tuples: Relation / Table Degree: Attribute Value Set: Attribute Domain: Attribute Name: Attribute (field): Cardinality:
Ex: Instance of Students Relation •  Cardinality = 3, arity = 5 , all rows distinct ,[object Object],Student(studno,name,address) Course(courseno,lecturer) Student(123,Bloggs,Woolton) (321,Jones,Owens) Schema Instance 3.8 19 [email_address] Blake 53777 3.2 18 [email_address] smith 53444 3.4 18 [email_address] Jones 53666 GPA age Login Name sid
Database Schema The description of the database is called database schema. A database schema is describe during database design and not expected to change frequently. Schema Diagram Displayed schema is called schema diagram. Each object in schema is called a schema construct.
Database instance (occurrence or state) The data in a database at a particular moment of time. Intension & Extension The schema is sometimes called the intension and a database instance is called an extension of the schema.
Relational Database Concepts Field  Record Table Classical W.A. Mozart Requiem 3 Jazz John Coltrane Blue Train 2 Rock Pink Floyd The Wall 1 Genre Artist Title CD_ID
Basic component of a Relation
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Examples of Attribute Domains
Alternative Terminology for Relational Model
Characteristics of Relational Database Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Continue …….. ,[object Object],[object Object],[object Object],[object Object]
Difference between a DBMS and RDBMS   RDBMS normally use a 4GL  DBMS normally use 3GL   Examples are ORACLE, INGRESS, SQL Server 2000 etc  Examples are dBase, FOXBASE, etc  Uses concept of table  Uses concept of a file   Platform used can be any  DOS, UNIX,VAX,VMS, etc Platform used is normally DOS     Hardware and Software requirements are High Hardware and Software requirements are minimum Speed of operation is very Fast   Speed of operation is very slow   It is based on the concept Of relationships   The concepts of relationships is missing in  a DBMS. If it exits it is very less. RDBMS DBMS
Popular DBMS In The Market Sybase SQL Anywhere   Informix Dynamic Server  Borland Interbase
Popular RDBMS that support SQL   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Typical Components Software Users Data DBMS Database “ How” to get Application Programs “ What” to get End users interact Application Programmers develop Database Designers design maintain Database Administrators
RDMS Components   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Overall System Structure
Tokyo France Paris Japan Beijing China New Delhi India Rome Italy Capital Country Francs Japan Yen France Quan China Rupee India Lira Italy Currency Country
 
Data about various entities and their relationships are stored in a series of  logical  tables (also known as  relations). A relation is a two-dimensional table with certain imposed restrictions: 1. Each Row is unique:  No duplicate row 2. Entries in any column have the same domain. 3. Each column has a unique name 4. Order of the columns or rows is irrelevant 5. Each entry in the table is single valued: No group item, repeating group, or array is allowed.  PRINCIPLES  OF RELATIONAL  MODEL Note:  A domain is the set of all possible values an attribute may assume.  Example:  Domain of Major= (Acct, Mktg, Mgmt, ISOM, Fina)

More Related Content

What's hot

What's hot (20)

An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
RDBMS concepts
RDBMS conceptsRDBMS concepts
RDBMS concepts
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)Introduction to DBMS(For College Seminars)
Introduction to DBMS(For College Seminars)
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Advanced SQL
Advanced SQLAdvanced SQL
Advanced SQL
 
Er diagram
Er diagramEr diagram
Er diagram
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
 
Types Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql ServerTypes Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql Server
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdf5. Basic Structure of SQL Queries.pdf
5. Basic Structure of SQL Queries.pdf
 
MySQL Data types
MySQL Data typesMySQL Data types
MySQL Data types
 
SQL JOIN
SQL JOINSQL JOIN
SQL JOIN
 
Database
DatabaseDatabase
Database
 
SQL commands
SQL commandsSQL commands
SQL commands
 

Viewers also liked

Diffrence between dbms and rdbms
Diffrence between dbms and rdbmsDiffrence between dbms and rdbms
Diffrence between dbms and rdbmsJitendra Thakur
 
Data Models In Database Management System
Data Models In Database Management SystemData Models In Database Management System
Data Models In Database Management SystemAmad Ahmad
 
Library Skill
Library SkillLibrary Skill
Library SkillDirz M
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handlingOracle PL/SQL exception handling
Oracle PL/SQL exception handlingSmitha Padmanabhan
 
Business intelligence databases and information management
Business intelligence databases and information managementBusiness intelligence databases and information management
Business intelligence databases and information managementProf. Othman Alsalloum
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database ModelsMurassa Gillani
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 
Different type of databases
Different type of databasesDifferent type of databases
Different type of databasesShwe Yee
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
Mis chapter 2 infomation, management and decision making
Mis chapter 2   infomation, management and decision makingMis chapter 2   infomation, management and decision making
Mis chapter 2 infomation, management and decision makingAjay Khot
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelPAQUIAAIZEL
 
Decision making and mis
Decision making and misDecision making and mis
Decision making and misadityapareek26
 
Decision Making and Information Systems
Decision Making and  Information SystemsDecision Making and  Information Systems
Decision Making and Information SystemsAriful Saimon
 

Viewers also liked (20)

Dbms models
Dbms modelsDbms models
Dbms models
 
Diffrence between dbms and rdbms
Diffrence between dbms and rdbmsDiffrence between dbms and rdbms
Diffrence between dbms and rdbms
 
CIS 245 Final Review
CIS 245 Final ReviewCIS 245 Final Review
CIS 245 Final Review
 
Stored procedures
Stored proceduresStored procedures
Stored procedures
 
DBMS
DBMSDBMS
DBMS
 
Data Models In Database Management System
Data Models In Database Management SystemData Models In Database Management System
Data Models In Database Management System
 
Library Skill
Library SkillLibrary Skill
Library Skill
 
Dot net
Dot netDot net
Dot net
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handlingOracle PL/SQL exception handling
Oracle PL/SQL exception handling
 
Business intelligence databases and information management
Business intelligence databases and information managementBusiness intelligence databases and information management
Business intelligence databases and information management
 
Fundamentals of Database Design
Fundamentals of Database DesignFundamentals of Database Design
Fundamentals of Database Design
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Different type of databases
Different type of databasesDifferent type of databases
Different type of databases
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Mis chapter 2 infomation, management and decision making
Mis chapter 2   infomation, management and decision makingMis chapter 2   infomation, management and decision making
Mis chapter 2 infomation, management and decision making
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Decision making and mis
Decision making and misDecision making and mis
Decision making and mis
 
Data models
Data modelsData models
Data models
 
Decision Making and Information Systems
Decision Making and  Information SystemsDecision Making and  Information Systems
Decision Making and Information Systems
 

Similar to Dbms Lec Uog 02

Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...Dipen Parmar
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdffikadumola
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representationRuhull
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfrsujeet169
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfMisganawAbeje1
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfTamiratDejene1
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionRajeev Srivastava
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database Rc Os
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxorlandov3
 
Database system concepts
Database system conceptsDatabase system concepts
Database system conceptsKumar
 
data base system to new data science lerne
data base system to new data science lernedata base system to new data science lerne
data base system to new data science lernetarunprajapati0t
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyvk5985399
 

Similar to Dbms Lec Uog 02 (20)

Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...Kskv kutch university DBMS unit 1  basic concepts, data,information,database,...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
 
2. Chapter Two.pdf
2. Chapter Two.pdf2. Chapter Two.pdf
2. Chapter Two.pdf
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
 
Data models
Data modelsData models
Data models
 
Data models
Data modelsData models
Data models
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdfchapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
chapter 2-DATABASE SYSTEM CONCEPTS AND architecture [Autosaved].pdf
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
DATA BASE MODEL Rohini
DATA BASE MODEL RohiniDATA BASE MODEL Rohini
DATA BASE MODEL Rohini
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In Introduction
 
Architecture of dbms
Architecture of dbmsArchitecture of dbms
Architecture of dbms
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
Student POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docxStudent POST  Database processing models showcase the logical s.docx
Student POST  Database processing models showcase the logical s.docx
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
data base system to new data science lerne
data base system to new data science lernedata base system to new data science lerne
data base system to new data science lerne
 
Presentation1
Presentation1Presentation1
Presentation1
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvyppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 

Recently uploaded

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Dbms Lec Uog 02

  • 1.
  • 2.
  • 3. Data base management systems follow particular models (known as database models) to store and manipulate data. A data base model is characterized by: 1. The way it stores data : STRUCTURE 2. The way data in the structure are manipulated: OPERATIONS Database Systems Models
  • 4.
  • 5. MAJOR DATABASE MODELS : HIERARCHICAL MODEL NETWORK MODEL RELATIONAL MODEL OBJECT ORIENTED MODEL Note: Currently, Relational Model is most popular. Our class will focus on Relational DBMS.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Evolution of DB Systems
  • 12. DEPARTMENT EMPLOYEE PROJECT SKILL DEPENDENT EQUIPMENT Hierarchical Database Model
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. DEPARTMENT EMPLOYEE PROJECT DEPENDENT EQUIPMENT Network Database Model
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Relational Database definition All information must be represented explicitly in one and only one way: as values in tables and each & every datum in the database must be accessible by specifying a table name, a column name, and a primary key.
  • 23.
  • 24.
  • 25.  
  • 26.
  • 27. TABLE (Relation) Primary Key Degree Attributes Cardinality Tuples Islamabad 25 Nasir S5 Lahore 34 Abdul S4 Karachi 40 Azmat S3 Islamabad 10 Zafar S2 Lahore 20 Kamran S1 City Quantity SName SCode Supplier Domain Domain
  • 28. Member of a relation type (set / table). All attribute names must be unique within a table / relation. A set of all possible values that can be attain by an attribute. Values currently contained in an attribute. Number of attributes in a relation / table. Rows in a table / relation. Number of tuples in a relation / table. Tuples: Relation / Table Degree: Attribute Value Set: Attribute Domain: Attribute Name: Attribute (field): Cardinality:
  • 29.
  • 30. Database Schema The description of the database is called database schema. A database schema is describe during database design and not expected to change frequently. Schema Diagram Displayed schema is called schema diagram. Each object in schema is called a schema construct.
  • 31. Database instance (occurrence or state) The data in a database at a particular moment of time. Intension & Extension The schema is sometimes called the intension and a database instance is called an extension of the schema.
  • 32. Relational Database Concepts Field Record Table Classical W.A. Mozart Requiem 3 Jazz John Coltrane Blue Train 2 Rock Pink Floyd The Wall 1 Genre Artist Title CD_ID
  • 33. Basic component of a Relation
  • 34.
  • 36. Alternative Terminology for Relational Model
  • 37.
  • 38.
  • 39. Difference between a DBMS and RDBMS RDBMS normally use a 4GL DBMS normally use 3GL Examples are ORACLE, INGRESS, SQL Server 2000 etc Examples are dBase, FOXBASE, etc Uses concept of table Uses concept of a file Platform used can be any DOS, UNIX,VAX,VMS, etc Platform used is normally DOS   Hardware and Software requirements are High Hardware and Software requirements are minimum Speed of operation is very Fast Speed of operation is very slow It is based on the concept Of relationships The concepts of relationships is missing in a DBMS. If it exits it is very less. RDBMS DBMS
  • 40. Popular DBMS In The Market Sybase SQL Anywhere Informix Dynamic Server Borland Interbase
  • 41.
  • 42. Typical Components Software Users Data DBMS Database “ How” to get Application Programs “ What” to get End users interact Application Programmers develop Database Designers design maintain Database Administrators
  • 43.
  • 45. Tokyo France Paris Japan Beijing China New Delhi India Rome Italy Capital Country Francs Japan Yen France Quan China Rupee India Lira Italy Currency Country
  • 46.  
  • 47. Data about various entities and their relationships are stored in a series of logical tables (also known as relations). A relation is a two-dimensional table with certain imposed restrictions: 1. Each Row is unique: No duplicate row 2. Entries in any column have the same domain. 3. Each column has a unique name 4. Order of the columns or rows is irrelevant 5. Each entry in the table is single valued: No group item, repeating group, or array is allowed. PRINCIPLES OF RELATIONAL MODEL Note: A domain is the set of all possible values an attribute may assume. Example: Domain of Major= (Acct, Mktg, Mgmt, ISOM, Fina)