SlideShare ist ein Scribd-Unternehmen logo
1 von 58
Chapter 4: Advanced SQL Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
Chapter 4: Advanced SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.2 Database System Concepts, 5 th  Ed., July 2005
Built-in Data Types in SQL  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.3 Database System Concepts, 5 th  Ed., July 2005
Build-in Data Types in SQL (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],4.4 Database System Concepts, 5 th  Ed., July 2005
User-Defined Types ,[object Object],[object Object],[object Object],[object Object],[object Object],4.5 Database System Concepts, 5 th  Ed., July 2005
Domain Constraints ,[object Object],[object Object],[object Object],[object Object],[object Object],4.6 Database System Concepts, 5 th  Ed., July 2005
Large-Object Types ,[object Object],[object Object],[object Object],[object Object],4.7 Database System Concepts, 5 th  Ed., July 2005
Integrity Constraints ,[object Object],[object Object],[object Object],[object Object],4.8 Database System Concepts, 5 th  Ed., July 2005
Constraints on a Single Relation  ,[object Object],[object Object],[object Object],[object Object],4.9 Database System Concepts, 5 th  Ed., July 2005
Not Null Constraint  ,[object Object],[object Object],[object Object],[object Object],4.10 Database System Concepts, 5 th  Ed., July 2005
The Unique Constraint ,[object Object],[object Object],[object Object],[object Object],4.11 Database System Concepts, 5 th  Ed., July 2005
The check clause ,[object Object],4.12 Database System Concepts, 5 th  Ed., July 2005 Example: Declare  branch_name  as the primary key for  branch  and ensure that the values of  assets  are non-negative. create table  branch ( branch_name  char (15) , branch_city  char (30), assets  integer , primary key  ( branch_name ) , check  ( assets >=  0))
The check clause (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],4.13 Database System Concepts, 5 th  Ed., July 2005
Referential Integrity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.14 Database System Concepts, 5 th  Ed., July 2005
Referential Integrity in SQL – Example create table  customer ( customer_name  char (20) , customer_street  char (30), customer_city  char (30), primary key  ( customer_name  )) create table  branch (branch_name  char (15) , branch_city  char (30), assets  numeric (12,2), primary key   ( branch_name  )) 4.15 Database System Concepts, 5 th  Ed., July 2005
Referential Integrity in SQL – Example (Cont.) create table  account ( account_number  char (10) , branch_name  char (15), balance  integer , primary key  ( account_number),  foreign key  ( branch_name )   references  branch  ) create table  depositor ( customer_name   char (20) , account_number  char (10) , primary key   ( customer_name, account_number), foreign key   ( account_number  )  references  account, foreign key   ( customer_name  )   references  customer  ) 4.16 Database System Concepts, 5 th  Ed., July 2005
Assertions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.17 Database System Concepts, 5 th  Ed., July 2005
Assertion Example ,[object Object],[object Object],[object Object],4.18 Database System Concepts, 5 th  Ed., July 2005
Assertion Example ,[object Object],[object Object],4.19 Database System Concepts, 5 th  Ed., July 2005
Authorization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.20 Database System Concepts, 5 th  Ed., July 2005
Authorization Specification in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.21 Database System Concepts, 5 th  Ed., July 2005
Privileges in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.22 Database System Concepts, 5 th  Ed., July 2005
Revoking Authorization in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.23 Database System Concepts, 5 th  Ed., July 2005
Embedded SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.24 Database System Concepts, 5 th  Ed., July 2005
Example Query ,[object Object],[object Object],[object Object],[object Object],4.25 Database System Concepts, 5 th  Ed., July 2005 ,[object Object]
Embedded SQL (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.26 Database System Concepts, 5 th  Ed., July 2005
Updates Through Cursors 4.27 Database System Concepts, 5 th  Ed., July 2005 ,[object Object],[object Object],[object Object],[object Object]
Dynamic SQL ,[object Object],[object Object],[object Object],4.28 Database System Concepts, 5 th  Ed., July 2005
ODBC and JDBC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.29 Database System Concepts, 5 th  Ed., July 2005
ODBC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.30 Database System Concepts, 5 th  Ed., July 2005
ODBC (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.31 Database System Concepts, 5 th  Ed., July 2005
ODBC Code ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.32 Database System Concepts, 5 th  Ed., July 2005
ODBC Code (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.33 Database System Concepts, 5 th  Ed., July 2005
ODBC Code (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.34 Database System Concepts, 5 th  Ed., July 2005
More ODBC Features ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.35 Database System Concepts, 5 th  Ed., July 2005
ODBC Conformance Levels ,[object Object],[object Object],[object Object],[object Object],[object Object],4.36 Database System Concepts, 5 th  Ed., July 2005
JDBC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.37 Database System Concepts, 5 th  Ed., July 2005
JDBC Code ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.38 Database System Concepts, 5 th  Ed., July 2005
JDBC Code (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.39 Database System Concepts, 5 th  Ed., July 2005
JDBC Code Details  ,[object Object],[object Object],[object Object],[object Object],[object Object],4.40 Database System Concepts, 5 th  Ed., July 2005
Procedural Extensions and Stored Procedures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.41 Database System Concepts, 5 th  Ed., July 2005
Functions and Procedures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.42 Database System Concepts, 5 th  Ed., July 2005
SQL Functions ,[object Object],[object Object],[object Object],[object Object],4.43 Database System Concepts, 5 th  Ed., July 2005
Table Functions ,[object Object],[object Object],[object Object],[object Object],[object Object],4.44 Database System Concepts, 5 th  Ed., July 2005
Table Functions (cont’d) ,[object Object],[object Object],4.45 Database System Concepts, 5 th  Ed., July 2005
SQL Procedures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.46 Database System Concepts, 5 th  Ed., July 2005
Procedural Constructs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.47 Database System Concepts, 5 th  Ed., July 2005
Procedural Constructs (Cont.) ,[object Object],[object Object],[object Object],4.48 Database System Concepts, 5 th  Ed., July 2005
Procedural Constructs (cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.49 Database System Concepts, 5 th  Ed., July 2005
External Language Functions/Procedures ,[object Object],[object Object],[object Object],4.50 Database System Concepts, 5 th  Ed., July 2005
External Language Routines (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.51 Database System Concepts, 5 th  Ed., July 2005
Security with External Language Routines ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.52 Database System Concepts, 5 th  Ed., July 2005
Recursion in SQL ,[object Object],[object Object],[object Object],4.53 Database System Concepts, 5 th  Ed., July 2005
The Power of Recursion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],4.54 Database System Concepts, 5 th  Ed., July 2005
Example of Fixed-Point Computation 4.55 Database System Concepts, 5 th  Ed., July 2005
Advanced SQL Features** ,[object Object],[object Object],[object Object],[object Object],[object Object],4.56 Database System Concepts, 5 th  Ed., July 2005
Advanced SQL Features (cont’d) ,[object Object],[object Object],[object Object],4.57 Database System Concepts, 5 th  Ed., July 2005
End of Chapter Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use

Weitere ähnliche Inhalte

Was ist angesagt?

Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environment
guest8fdbdd
 
WSDL-Design-and-Generation-in-EASparx
WSDL-Design-and-Generation-in-EASparxWSDL-Design-and-Generation-in-EASparx
WSDL-Design-and-Generation-in-EASparx
Frank Ning
 
PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)
Buck Woolley
 

Was ist angesagt? (20)

Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environment
 
Assignment#07
Assignment#07Assignment#07
Assignment#07
 
Data Warehouse and Business Intelligence - Recipe 1
Data Warehouse and Business Intelligence - Recipe 1Data Warehouse and Business Intelligence - Recipe 1
Data Warehouse and Business Intelligence - Recipe 1
 
Dbms practical list
Dbms practical listDbms practical list
Dbms practical list
 
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
Data Warehouse and Business Intelligence - Recipe 4 - Staging area - how to v...
 
ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...
ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...
ata Warehouse and Business Intelligence - Recipe 7 - A messaging system for O...
 
Data Warehouse and Business Intelligence - Recipe 2
Data Warehouse and Business Intelligence - Recipe 2Data Warehouse and Business Intelligence - Recipe 2
Data Warehouse and Business Intelligence - Recipe 2
 
Assignment#06
Assignment#06Assignment#06
Assignment#06
 
BIS06 Physical Database Models
BIS06 Physical Database ModelsBIS06 Physical Database Models
BIS06 Physical Database Models
 
DataBase Management System Lab File
DataBase Management System Lab FileDataBase Management System Lab File
DataBase Management System Lab File
 
Schema webinar
Schema webinarSchema webinar
Schema webinar
 
The Database Environment Chapter 8
The Database Environment Chapter 8The Database Environment Chapter 8
The Database Environment Chapter 8
 
WSDL-Design-and-Generation-in-EASparx
WSDL-Design-and-Generation-in-EASparxWSDL-Design-and-Generation-in-EASparx
WSDL-Design-and-Generation-in-EASparx
 
Assignment#02
Assignment#02Assignment#02
Assignment#02
 
PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)PBDJ 19-4(woolley rev)
PBDJ 19-4(woolley rev)
 
Schema201 webinar
Schema201 webinarSchema201 webinar
Schema201 webinar
 
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
 
Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...
Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...
Recipe 5 of Data Warehouse and Business Intelligence - The null values manage...
 
Sql xp 04
Sql xp 04Sql xp 04
Sql xp 04
 

Ähnlich wie ch4

Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01
Ankit Dubey
 
Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01
Ankit Dubey
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
Jafar Nesargi
 
Relational database language
Relational database languageRelational database language
Relational database language
Jafar Nesargi
 
Oracle data integrator project
Oracle data integrator projectOracle data integrator project
Oracle data integrator project
Amit Sharma
 

Ähnlich wie ch4 (20)

DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdfDBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
 
Intake 38 data access 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
 
Ch4
Ch4Ch4
Ch4
 
The Database Environment Chapter 7
The Database Environment Chapter 7The Database Environment Chapter 7
The Database Environment Chapter 7
 
Bank mangement system
Bank mangement systemBank mangement system
Bank mangement system
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01
 
Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01Sm relationaldatamodel-150423084157-conversion-gate01
Sm relationaldatamodel-150423084157-conversion-gate01
 
Review of SQL
Review of SQLReview of SQL
Review of SQL
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Chap 7
Chap 7Chap 7
Chap 7
 
Metadata Creation In OBIEE
Metadata Creation In OBIEEMetadata Creation In OBIEE
Metadata Creation In OBIEE
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
chap 7.ppt(sql).ppt
chap 7.ppt(sql).pptchap 7.ppt(sql).ppt
chap 7.ppt(sql).ppt
 
Chapter 7 relation database language
Chapter 7 relation database languageChapter 7 relation database language
Chapter 7 relation database language
 
Relational database language
Relational database languageRelational database language
Relational database language
 
Physical Design and Development
Physical Design and DevelopmentPhysical Design and Development
Physical Design and Development
 
Ch3
Ch3Ch3
Ch3
 
Oracle data integrator project
Oracle data integrator projectOracle data integrator project
Oracle data integrator project
 

Mehr von KITE www.kitecolleges.com (20)

DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENTDISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
 
BrainFingerprintingpresentation
BrainFingerprintingpresentationBrainFingerprintingpresentation
BrainFingerprintingpresentation
 
ch6
ch6ch6
ch6
 
week-11x
week-11xweek-11x
week-11x
 
PPT (2)
PPT (2)PPT (2)
PPT (2)
 
week-10x
week-10xweek-10x
week-10x
 
week-1x
week-1xweek-1x
week-1x
 
week-18x
week-18xweek-18x
week-18x
 
ch14
ch14ch14
ch14
 
ch16
ch16ch16
ch16
 
holographic versatile disc
holographic versatile discholographic versatile disc
holographic versatile disc
 
week-22x
week-22xweek-22x
week-22x
 
week-16x
week-16xweek-16x
week-16x
 
week-5x
week-5xweek-5x
week-5x
 
week-6x
week-6xweek-6x
week-6x
 
week-3x
week-3xweek-3x
week-3x
 
ch8
ch8ch8
ch8
 
Intro Expert Systems test-me.co.uk
Intro Expert Systems test-me.co.ukIntro Expert Systems test-me.co.uk
Intro Expert Systems test-me.co.uk
 
ch17
ch17ch17
ch17
 
week-7x
week-7xweek-7x
week-7x
 

Kürzlich hochgeladen

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

ch4

  • 1. Chapter 4: Advanced SQL Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Referential Integrity in SQL – Example create table customer ( customer_name char (20) , customer_street char (30), customer_city char (30), primary key ( customer_name )) create table branch (branch_name char (15) , branch_city char (30), assets numeric (12,2), primary key ( branch_name )) 4.15 Database System Concepts, 5 th Ed., July 2005
  • 16. Referential Integrity in SQL – Example (Cont.) create table account ( account_number char (10) , branch_name char (15), balance integer , primary key ( account_number), foreign key ( branch_name ) references branch ) create table depositor ( customer_name char (20) , account_number char (10) , primary key ( customer_name, account_number), foreign key ( account_number ) references account, foreign key ( customer_name ) references customer ) 4.16 Database System Concepts, 5 th Ed., July 2005
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55. Example of Fixed-Point Computation 4.55 Database System Concepts, 5 th Ed., July 2005
  • 56.
  • 57.
  • 58. End of Chapter Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use