SlideShare una empresa de Scribd logo
1 de 68
Chapter 3: SQL Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
Chapter 3: SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.2 Database System Concepts, 5 th  Ed., June 2006
History ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.3 Database System Concepts, 5 th  Ed., June 2006
Data Definition Language ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.4 Database System Concepts, 5 th  Ed., June 2006 Allows the specification of:
Create Table Construct ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.5 Database System Concepts, 5 th  Ed., June 2006
Domain Types in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.6 Database System Concepts, 5 th  Ed., June 2006
Integrity Constraints on Tables ,[object Object],[object Object],3.7 Database System Concepts, 5 th  Ed., June 2006 Example: Declare  branch_name  as the primary key for  branch . create table  branch ( branch_name  char(15) , branch_city  char(30)  not null , assets  integer, primary key  ( branch_name )) primary key  declaration on an attribute automatically ensures  not null  in SQL-92 onwards, needs to be explicitly stated in SQL-89
Basic Insertion and Deletion of Tuples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.8 Database System Concepts, 5 th  Ed., June 2006
Drop and Alter Table Constructs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.9 Database System Concepts, 5 th  Ed., June 2006
Basic Query Structure  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.10 Database System Concepts, 5 th  Ed., June 2006
The select Clause ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.11 Database System Concepts, 5 th  Ed., June 2006
The select Clause (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.12 Database System Concepts, 5 th  Ed., June 2006
The select Clause (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],3.13 Database System Concepts, 5 th  Ed., June 2006
The where Clause ,[object Object],[object Object],[object Object],[object Object],[object Object],3.14 Database System Concepts, 5 th  Ed., June 2006
The from Clause ,[object Object],[object Object],[object Object],[object Object],3.15 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],select  customer_name, borrower.loan_number, amount from  borrower, loan where  borrower.loan_number = loan.loan_number  and branch_name =  'Perryridge'
The Rename Operation ,[object Object],[object Object],[object Object],3.16 Database System Concepts, 5 th  Ed., June 2006 select  customer_name, borrower.loan_number  as  loan_id, amount from  borrower, loan where  borrower.loan_number = loan.loan_number
Tuple Variables ,[object Object],[object Object],3.17 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],[object Object],[object Object],[object Object],select  customer_name, T.loan_number, S.amount from  borrower  as  T, loan  as  S where  T.loan_number = S.loan_number
String Operations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.18 Database System Concepts, 5 th  Ed., June 2006
Ordering the Display of Tuples ,[object Object],[object Object],[object Object],[object Object],3.19 Database System Concepts, 5 th  Ed., June 2006
Duplicates ,[object Object],[object Object],[object Object],[object Object],[object Object],3.20 Database System Concepts, 5 th  Ed., June 2006
Duplicates (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.21 Database System Concepts, 5 th  Ed., June 2006
Set Operations ,[object Object],[object Object],[object Object],[object Object],[object Object],3.22 Database System Concepts, 5 th  Ed., June 2006
Set Operations ,[object Object],3.23 Database System Concepts, 5 th  Ed., June 2006 ( select   customer_name  from  depositor ) except (select   customer_name  from  borrower) ( select   customer_name  from  depositor ) intersect (select   customer_name  from  borrower) ,[object Object],(select   customer_name  from  depositor ) union (select   customer_name  from  borrower) ,[object Object]
Aggregate Functions ,[object Object],[object Object],3.24 Database System Concepts, 5 th  Ed., June 2006
Aggregate Functions (Cont.) ,[object Object],3.25 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],[object Object],select avg  (balance) from  account where  branch_name =  'Perryridge'  select count  (*) from  customer select count (distinct  customer_name) from  depositor
Aggregate Functions – Group By ,[object Object],3.26 Database System Concepts, 5 th  Ed., June 2006 Note: Attributes in  select  clause outside of aggregate functions must  appear in  group by  list select  branch_name,  count (distinct   customer_name) from  depositor, account where  depositor.account_number = account.account_number group by  branch_name
Aggregate Functions – Having Clause ,[object Object],3.27 Database System Concepts, 5 th  Ed., June 2006 Note: predicates in the  having  clause are applied after the  formation of groups whereas predicates in the  where   clause are applied before forming groups select  branch_name,  avg  ( balance ) from  account group by  branch_name having avg   ( balance )  >  1200
Nested Subqueries ,[object Object],[object Object],[object Object],3.28 Database System Concepts, 5 th  Ed., June 2006
“ In” Construct ,[object Object],3.29 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],select distinct  customer_name from  borrower where  customer_name  not in  ( select  customer_name from  depositor  ) select distinct  customer_name from  borrower where  customer_name  in  ( select  customer_name from   depositor  )
Example Query ,[object Object],3.30 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],select distinct   customer_name from  borrower, loan where  borrower.loan_number = loan.loan_number  and branch_name =  'Perryridge'  and ( branch_name, customer_name  )   in (select  branch_name, customer_name from  depositor, account where  depositor.account_number =  account.account_number  )
“ Some” Construct ,[object Object],3.31 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],select  branch_name from  branch where  assets >  some (select  assets from  branch where  branch_city =  'Brooklyn')  select distinct  T.branch_name from  branch  as  T, branch  as  S where  T.assets > S.assets  and S.branch_city = ' Brooklyn'
“ All” Construct ,[object Object],3.32 Database System Concepts, 5 th  Ed., June 2006 select  branch_name from  branch where  assets >  all (select  assets from  branch where  branch_city =  'Brooklyn')
“ Exists” Construct ,[object Object],3.33 Database System Concepts, 5 th  Ed., June 2006 select distinct  S.customer_name from  depositor  as  S where not exists  ( ( select  branch_name from  branch where  branch_city =  'Brooklyn')  except ( select  R.branch_name from  depositor  as  T, account  as  R where  T.account_number = R.account_number  and S.customer_name = T.customer_name  )) ,[object Object],[object Object]
Absence of Duplicate Tuples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.34 Database System Concepts, 5 th  Ed., June 2006
Example Query ,[object Object],3.35 Database System Concepts, 5 th  Ed., June 2006 select distinct  T.customer_name from  depositor  as  T where not unique  ( select  R.customer_name from  account, depositor  as  R where  T.customer_name  = R.customer_name  and R.account_number = account.account_number  and account.branch_name =  'Perryridge')  ,[object Object]
Modification of the Database – Deletion ,[object Object],[object Object],[object Object],[object Object],3.36 Database System Concepts, 5 th  Ed., June 2006
Example Query ,[object Object],3.37 Database System Concepts, 5 th  Ed., June 2006 delete from  account where  balance  < ( select avg  ( balance  ) from  account  ) ,[object Object],[object Object],[object Object],[object Object]
Modification of the Database – Insertion ,[object Object],[object Object],[object Object],[object Object],[object Object],3.38 Database System Concepts, 5 th  Ed., June 2006
Modification of the Database – Insertion ,[object Object],[object Object],[object Object],[object Object],3.39 Database System Concepts, 5 th  Ed., June 2006
Modification of the Database – Updates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.40 Database System Concepts, 5 th  Ed., June 2006
Case Statement for Conditional Updates ,[object Object],[object Object],3.41 Database System Concepts, 5 th  Ed., June 2006
More Features Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
Joined Relations** ,[object Object],[object Object],[object Object],[object Object],3.43 Database System Concepts, 5 th  Ed., June 2006
Joined Relations – Datasets for Examples ,[object Object],3.44 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],[object Object]
Joined Relations – Examples  ,[object Object],3.45 Database System Concepts, 5 th  Ed., June 2006 ,[object Object]
Joined Relations – Examples ,[object Object],3.46 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],[object Object],select  customer_name from  ( depositor  natural full outer join  borrower  ) where  account_number  is null or  loan_number  is null
Joined Relations – Examples ,[object Object],[object Object],[object Object],[object Object],3.47 Database System Concepts, 5 th  Ed., June 2006
Derived Relations ,[object Object],[object Object],[object Object],[object Object],3.48 Database System Concepts, 5 th  Ed., June 2006
View Definition ,[object Object],[object Object],[object Object],[object Object],[object Object],3.49 Database System Concepts, 5 th  Ed., June 2006
Example Queries ,[object Object],3.50 Database System Concepts, 5 th  Ed., June 2006 ,[object Object],create view  all_customer  as ( select  branch_name, customer_name from  depositor, account where  depositor.account_number = account.account_number  ) union ( select  branch_name, customer_name from  borrower, loan where  borrower.loan_number = loan.loan_number  ) select  customer_name from  all_customer where  branch_name =  'Perryridge'
Uses of Views ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.51 Database System Concepts, 5 th  Ed., June 2006
Processing of Views ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.52 Database System Concepts, 5 th  Ed., June 2006
View Expansion ,[object Object],[object Object],[object Object],[object Object],[object Object],3.53 Database System Concepts, 5 th  Ed., June 2006
With Clause ,[object Object],[object Object],3.54 Database System Concepts, 5 th  Ed., June 2006
Complex Queries using With Clause ,[object Object],3.55 Database System Concepts, 5 th  Ed., June 2006 with   branch_total  ( branch _ name ,  value )  as select   branch _ name ,  sum  ( balance ) from   account group   by   branch _ name with   branch _ total _ avg  ( value )  as select   avg  ( value ) from   branch _ total select  branch _ name from   branch _ total ,  branch _ total_avg  where   branch_total.value >= branch_total_avg.value ,[object Object],[object Object]
Update of a View ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.56 Database System Concepts, 5 th  Ed., June 2006
Updates Through Views (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.57 Database System Concepts, 5 th  Ed., June 2006
Null Values ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.58 Database System Concepts, 5 th  Ed., June 2006
Null Values and Three Valued Logic ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],3.59 Database System Concepts, 5 th  Ed., June 2006
Null Values and Aggregates ,[object Object],[object Object],[object Object],[object Object],[object Object],3.60 Database System Concepts, 5 th  Ed., June 2006
End of Chapter 3 Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See  www.db-book.com  for conditions on re-use
The where Clause (Cont.) ,[object Object],[object Object],3.62 Database System Concepts, 5 th  Ed., June 2006 select  loan_number from  loan where  amount   between  90000  and  100000
Figure 3.1: Database Schema branch  ( branch_name , branch_city, assets ) customer  ( customer_name , customer_street, customer_city ) loan  ( loan_number , branch_name, amount ) borrower  ( customer_name, loan_number ) account  ( account_number ,  branch_name, balance ) depositor  ( customer_name, account_number ) 3.63 Database System Concepts, 5 th  Ed., June 2006
Definition of Some Clause ,[object Object],[object Object],3.64 Database System Concepts, 5 th  Ed., June 2006 0 5 0 5 (5     some ) = true (since 0    5) ) = true (5 =  some
Definition of all Clause ,[object Object],[object Object],3.65 Database System Concepts, 5 th  Ed., June 2006 0 5 6 (5 <  all ) = false 6 10 4 ) = true 5 4 6 (5     all ) = true (since 5    4 and 5    6) (5 <  all ) = false (5 =  all
Test for Empty Relations ,[object Object],[object Object],[object Object],3.66 Database System Concepts, 5 th  Ed., June 2006
Figure 3.3: Tuples inserted into  loan  and  borrower 3.67 Database System Concepts, 5 th  Ed., June 2006
Figure 3.4: The  loan  and  borrower  relations 3.68 Database System Concepts, 5 th  Ed., June 2006

Más contenido relacionado

La actualidad más candente

Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Prosanta Ghosh
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESVENNILAV6
 
Relational database intro for marketers
Relational database intro for marketersRelational database intro for marketers
Relational database intro for marketersSteve Finlay
 
Relational database
Relational  databaseRelational  database
Relational databaseamkrisha
 
4. SQL in DBMS
4. SQL in DBMS4. SQL in DBMS
4. SQL in DBMSkoolkampus
 
5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMSkoolkampus
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Eddyzulham Mahluzydde
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries InformationNishant Munjal
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...Raj vardhan
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...Mustafa Kamel Mohammadi
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functionsfarwa waqar
 

La actualidad más candente (20)

Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013Dbms ii mca-ch7-sql-2013
Dbms ii mca-ch7-sql-2013
 
Assignment#08
Assignment#08Assignment#08
Assignment#08
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 
Assignment#07
Assignment#07Assignment#07
Assignment#07
 
Relational database intro for marketers
Relational database intro for marketersRelational database intro for marketers
Relational database intro for marketers
 
ch2
ch2ch2
ch2
 
Relational database
Relational  databaseRelational  database
Relational database
 
4. SQL in DBMS
4. SQL in DBMS4. SQL in DBMS
4. SQL in DBMS
 
5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS5. Other Relational Languages in DBMS
5. Other Relational Languages in DBMS
 
Assignment#02
Assignment#02Assignment#02
Assignment#02
 
Assignment#01
Assignment#01Assignment#01
Assignment#01
 
Sql.pptx
Sql.pptxSql.pptx
Sql.pptx
 
Assignment#05
Assignment#05Assignment#05
Assignment#05
 
Ch3
Ch3Ch3
Ch3
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries Information
 
Chapter9 more on database and sql
Chapter9 more on database and sqlChapter9 more on database and sql
Chapter9 more on database and sql
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
 

Destacado

VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6sriprasoon
 
VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5sriprasoon
 
VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14sriprasoon
 
VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17sriprasoon
 
VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11sriprasoon
 
Introduction To DBMS
Introduction To DBMSIntroduction To DBMS
Introduction To DBMSrafat_mentor
 
VNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAVNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAsriprasoon
 
VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8sriprasoon
 
VNSISPL_DBMS_Concepts_ch22
VNSISPL_DBMS_Concepts_ch22VNSISPL_DBMS_Concepts_ch22
VNSISPL_DBMS_Concepts_ch22sriprasoon
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architectureKumar
 
Indexing and hashing
Indexing and hashingIndexing and hashing
Indexing and hashingJeet Poria
 
Computer Networks & mobile phone
Computer Networks & mobile phoneComputer Networks & mobile phone
Computer Networks & mobile phoneDinajpur TTC
 

Destacado (16)

VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6
 
VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5
 
VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14
 
VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17
 
VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11
 
Introduction To DBMS
Introduction To DBMSIntroduction To DBMS
Introduction To DBMS
 
VNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAVNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appA
 
VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8
 
Relational Model
Relational ModelRelational Model
Relational Model
 
ch11
ch11ch11
ch11
 
VNSISPL_DBMS_Concepts_ch22
VNSISPL_DBMS_Concepts_ch22VNSISPL_DBMS_Concepts_ch22
VNSISPL_DBMS_Concepts_ch22
 
ch13
ch13ch13
ch13
 
ch6
ch6ch6
ch6
 
2 database system concepts and architecture
2 database system concepts and architecture2 database system concepts and architecture
2 database system concepts and architecture
 
Indexing and hashing
Indexing and hashingIndexing and hashing
Indexing and hashing
 
Computer Networks & mobile phone
Computer Networks & mobile phoneComputer Networks & mobile phone
Computer Networks & mobile phone
 

Similar a ch3 (20)

ch3[1].ppt
ch3[1].pptch3[1].ppt
ch3[1].ppt
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Ch 3.pdf
Ch 3.pdfCh 3.pdf
Ch 3.pdf
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
dbms first unit
dbms first unitdbms first unit
dbms first unit
 
Ch3
Ch3Ch3
Ch3
 
Ch3
Ch3Ch3
Ch3
 
SQL PPT.ppt
SQL PPT.pptSQL PPT.ppt
SQL PPT.ppt
 
RDBMS
RDBMSRDBMS
RDBMS
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 
Ch3
Ch3Ch3
Ch3
 
DBMS Unit-2.pdf
DBMS Unit-2.pdfDBMS Unit-2.pdf
DBMS Unit-2.pdf
 
Ch3 a
Ch3 aCh3 a
Ch3 a
 
Ch3
Ch3Ch3
Ch3
 
SQL.ppt
SQL.pptSQL.ppt
SQL.ppt
 
Relational Model
Relational ModelRelational Model
Relational Model
 

Más de KITE www.kitecolleges.com (20)

DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENTDISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
 
BrainFingerprintingpresentation
BrainFingerprintingpresentationBrainFingerprintingpresentation
BrainFingerprintingpresentation
 
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
 
ch4
ch4ch4
ch4
 
week-7x
week-7xweek-7x
week-7x
 

Último

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Último (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 

ch3

  • 1. Chapter 3: 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.
  • 16.
  • 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. More Features Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61. End of Chapter 3 Database System Concepts, 5th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use
  • 62.
  • 63. Figure 3.1: Database Schema branch ( branch_name , branch_city, assets ) customer ( customer_name , customer_street, customer_city ) loan ( loan_number , branch_name, amount ) borrower ( customer_name, loan_number ) account ( account_number , branch_name, balance ) depositor ( customer_name, account_number ) 3.63 Database System Concepts, 5 th Ed., June 2006
  • 64.
  • 65.
  • 66.
  • 67. Figure 3.3: Tuples inserted into loan and borrower 3.67 Database System Concepts, 5 th Ed., June 2006
  • 68. Figure 3.4: The loan and borrower relations 3.68 Database System Concepts, 5 th Ed., June 2006