SlideShare a Scribd company logo
1 of 98
Chapter 4:  SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Schema Used in Examples
Basic Structure  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The select Clause ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The select Clause (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The select Clause (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The where Clause ,[object Object],[object Object],[object Object],[object Object],[object Object]
The where Clause (Cont.) ,[object Object],[object Object],select  loan-number from  loan where  amount   between  90000  and  100000
The from Clause ,[object Object],[object Object],[object Object],[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],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],select distinct  T.branch-name   from  branch  as  T, branch  as  S   where  T.assets > S.assets  and  S.branch-city = ‘ Brooklyn ’ ,[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]
Ordering the Display of Tuples ,[object Object],[object Object],[object Object],[object Object]
Duplicates ,[object Object],[object Object],[object Object],[object Object],[object Object]
Duplicates (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Set Operations ,[object Object],[object Object],[object Object],[object Object],[object Object]
Set Operations ,[object Object],( 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]
Aggregate Functions (Cont.) ,[object Object],[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],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],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
Null Values ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Null Values and Three Valued Logic ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Null Values and Aggregates ,[object Object],[object Object],[object Object],[object Object],[object Object]
Nested Subqueries ,[object Object],[object Object],[object Object]
Example Query ,[object Object],[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],[object Object],[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)
Set Comparison ,[object Object],[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 ’
Definition of  Some Clause ,[object Object],(5<  some ) = true 0 5 0 ) = false 5 0 5 (5     some ) = true (since 0     5) (read:  5 < some tuple in the relation) (5<  some ) = true (5 =  some (=  some )     in However, (    some )     not in 0 5 6
Definition of all Clause ,[object Object],(5<  all ) = false 6 10 4 ) = true 5 4 6 (5     all ) = true (since 5     4 and 5    6) (5<  all ) = false (5 =  all (    all )     not in However, (=  all )     in 0 5 6
Example Query ,[object Object],select  branch-name from  branch where  assets >  all (select  assets from  branch where  branch-city =  ‘Brooklyn’)
Test for Empty Relations ,[object Object],[object Object],[object Object]
Example Query ,[object Object],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],[object Object]
Test for Absence of Duplicate Tuples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example Query ,[object Object],select distinct  T.customer-name from  depositor 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]
Views ,[object Object],create view  v  as   <query expression> ,[object Object],[object Object],[object Object]
Example Queries ,[object Object],[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’
Derived Relations ,[object Object],[object Object],[object Object]
With Clause ,[object Object],[object Object]
Complex Query using With Clause ,[object Object],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
Modification of the Database – Deletion ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example Query ,[object Object],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]
Modification of the Database – Insertion ,[object Object],[object Object],[object Object]
Modification of the Database – Updates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Case Statement for Conditional Updates ,[object Object],[object Object]
Update of a View ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transactions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transactions (Cont.) ,[object Object],[object Object],[object Object],[object Object]
Joined Relations ,[object Object],[object Object],[object Object],[object Object],Join Types inner join left outer join right outer join full outer join Join Conditions natural on  <predicate> using  ( A 1 ,  A 2 , ...,  A n )
Joined Relations – Datasets for Examples ,[object Object],[object Object],[object Object],customer-name loan-number  Jones Smith Hayes L-170 L-230 L-155 amount 3000 4000 1700 branch-name Downtown Redwood Perryridge loan-number L-170  L-230 L-260
Joined Relations – Examples  ,[object Object],[object Object],branch-name amount Downtown Redwood 3000 4000 customer-name loan-number  Jones Smith L-170 L-230 loan-number  L-170 L-230 branch-name amount Downtown Redwood Perryridge 3000 4000 1700 customer-name loan-number  Jones Smith null L-170 L-230 null loan-number  L-170 L-230 L-260
Joined Relations – Examples ,[object Object],[object Object],branch-name amount Downtown Redwood 3000 4000 customer-name Jones Smith loan-number  L-170 L-230 branch-name amount Downtown Redwood null  3000 4000 null customer-name Jones Smith Hayes loan-number  L-170 L-230 L-155
Joined Relations – Examples ,[object Object],[object Object],select  customer-name from  ( depositor  natural full outer join  borrower ) where  account-number  is  null  or  loan-number  is  null branch-name amount Downtown Redwood Perryridge null 3000 4000 1700 null customer-name Jones Smith null Hayes loan-number  L-170 L-230 L-260 L-155
Data Definition Language (DDL) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Allows the specification of not only a set of relations but also information about each relation, including:
Domain Types in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Date/Time Types in SQL (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],[object Object]
Create Table Construct ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Integrity Constraints in Create Table ,[object Object],[object Object],[object Object],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)) primary key  declaration on an attribute automatically ensures  not null  in SQL-92 onwards, needs to be explicitly stated in SQL-89
Drop and Alter Table Constructs ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Embedded SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example Query ,[object Object],[object Object],[object Object],[object Object],From within a host language, find the names and cities of customers with more than the variable  amount  dollars in some account.
Embedded SQL (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Updates Through Cursors ,[object Object],[object Object],[object Object],[object Object]
Dynamic SQL ,[object Object],[object Object],[object Object]
ODBC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ODBC  (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
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]
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]
ODBC Code (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
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]
ODBC Conformance Levels ,[object Object],[object Object],[object Object],[object Object],[object Object]
JDBC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
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]
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]
JDBC Code Details  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Prepared Statement ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Other SQL Features ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Schemas, Catalogs, and Environments ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Procedural Extensions and Stored Procedures ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Extra Material on JDBC and Application Architectures
Transactions in JDBC ,[object Object],[object Object],[object Object],[object Object]
Procedure and Function Calls in JDBC ,[object Object],[object Object],[object Object]
Result Set MetaData ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Database Meta Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Application Architectures ,[object Object],[object Object],[object Object],[object Object],[object Object]
Two-tier Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Three Tier Model Application/HTTP Server Servlets JDBC Network HTTP/Application Specific Protocol CGI Program Database Server Client Client Client
Three-tier Model (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
End of Chapter
The  loan  and  borrower  Relations
The Result of  loan  inner join  borrower  on  loan.loan-number = borrower.loan-number
The Result of  loan  left outer join  borrower  on   loan-number
The Result of  loan  natural inner join  borrower
Join Types and Join Conditions
The Result of  loan  natural right outer join  borrower
The Result of  loan  full outer join  borrower  using( loan-number)
SQL Data Definition for Part of the Bank Database

More Related Content

What's hot (20)

SQL Views
SQL ViewsSQL Views
SQL Views
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
Joins in SQL
Joins in SQLJoins in SQL
Joins in SQL
 
Data Structure and Algorithms Linked List
Data Structure and Algorithms Linked ListData Structure and Algorithms Linked List
Data Structure and Algorithms Linked List
 
Anomalies in database
Anomalies in databaseAnomalies in database
Anomalies in database
 
DBMS 7 | Relational Query Language
DBMS 7 | Relational Query LanguageDBMS 7 | Relational Query Language
DBMS 7 | Relational Query Language
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
 
Doubly linked list (animated)
Doubly linked list (animated)Doubly linked list (animated)
Doubly linked list (animated)
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functions
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional array
 
Sql commands
Sql commandsSql commands
Sql commands
 
basic structure of SQL FINAL.pptx
basic structure of SQL FINAL.pptxbasic structure of SQL FINAL.pptx
basic structure of SQL FINAL.pptx
 
Introduction to sql
Introduction to sqlIntroduction to sql
Introduction to sql
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Aggregate function
Aggregate functionAggregate function
Aggregate function
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 

Viewers also liked

CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationGuru Ji
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMSkoolkampus
 
Data Manipulation Language
Data Manipulation LanguageData Manipulation Language
Data Manipulation LanguageJas Singh Bhasin
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
DBMS : Relational Algebra
DBMS : Relational Algebra DBMS : Relational Algebra
DBMS : Relational Algebra Sridhar Baithi
 
Data integrity Dbms presentation 12 cs 18
Data integrity Dbms presentation 12 cs 18Data integrity Dbms presentation 12 cs 18
Data integrity Dbms presentation 12 cs 18Engr Imran Ashraf
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLEVraj Patel
 
Dbms ii mca-ch5-ch6-relational algebra-2013
Dbms ii mca-ch5-ch6-relational algebra-2013Dbms ii mca-ch5-ch6-relational algebra-2013
Dbms ii mca-ch5-ch6-relational algebra-2013Prosanta Ghosh
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mappingsaurabhshertukde
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)yourbookworldanil
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 

Viewers also liked (20)

SQL Data Manipulation
SQL Data ManipulationSQL Data Manipulation
SQL Data Manipulation
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 
Data Manipulation Language
Data Manipulation LanguageData Manipulation Language
Data Manipulation Language
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
From crash to testcase
From crash to testcaseFrom crash to testcase
From crash to testcase
 
DBMS : Relational Algebra
DBMS : Relational Algebra DBMS : Relational Algebra
DBMS : Relational Algebra
 
Data integrity Dbms presentation 12 cs 18
Data integrity Dbms presentation 12 cs 18Data integrity Dbms presentation 12 cs 18
Data integrity Dbms presentation 12 cs 18
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Dbms ii mca-ch5-ch6-relational algebra-2013
Dbms ii mca-ch5-ch6-relational algebra-2013Dbms ii mca-ch5-ch6-relational algebra-2013
Dbms ii mca-ch5-ch6-relational algebra-2013
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 
trigger dbms
trigger dbmstrigger dbms
trigger dbms
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
 
Advanced DBMS presentation
Advanced DBMS presentationAdvanced DBMS presentation
Advanced DBMS presentation
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Overview of security in DBMS
Overview of security in DBMSOverview of security in DBMS
Overview of security in DBMS
 
Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)Presentation on dbms(relational calculus)
Presentation on dbms(relational calculus)
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Dbms models
Dbms modelsDbms models
Dbms models
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 

Similar to 4. SQL in DBMS

Similar to 4. SQL in DBMS (20)

SQL PPT.ppt
SQL PPT.pptSQL PPT.ppt
SQL PPT.ppt
 
Unit04 dbms
Unit04 dbmsUnit04 dbms
Unit04 dbms
 
Sql server select queries ppt 18
Sql server select queries ppt 18Sql server select queries ppt 18
Sql server select queries ppt 18
 
Ch4
Ch4Ch4
Ch4
 
ch3
ch3ch3
ch3
 
dbms first unit
dbms first unitdbms first unit
dbms first unit
 
relational model in Database Management.ppt.ppt
relational model in Database Management.ppt.pptrelational model in Database Management.ppt.ppt
relational model in Database Management.ppt.ppt
 
Lllll
LllllLllll
Lllll
 
3. Relational Models in DBMS
3. Relational Models in DBMS3. Relational Models in DBMS
3. Relational Models in DBMS
 
Relation model part 1
Relation model part 1Relation model part 1
Relation model part 1
 
RDBMS
RDBMSRDBMS
RDBMS
 
3.ppt
3.ppt3.ppt
3.ppt
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 
Details of RDBMS.ppt
Details of RDBMS.pptDetails of RDBMS.ppt
Details of RDBMS.ppt
 
Relational Algebra Ch6 (Navathe 4th edition)/ Ch7 (Navathe 3rd edition)
Relational Algebra Ch6 (Navathe 4th edition)/ Ch7 (Navathe 3rd edition)Relational Algebra Ch6 (Navathe 4th edition)/ Ch7 (Navathe 3rd edition)
Relational Algebra Ch6 (Navathe 4th edition)/ Ch7 (Navathe 3rd edition)
 
Database system by VISHAL PATIL
Database system by VISHAL PATILDatabase system by VISHAL PATIL
Database system by VISHAL PATIL
 
relational algebra
relational algebrarelational algebra
relational algebra
 
14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
 
Dbms module ii
Dbms module iiDbms module ii
Dbms module ii
 
Cs501 rel algebra
Cs501 rel algebraCs501 rel algebra
Cs501 rel algebra
 

More from koolkampus

Local Area Networks in Data Communication DC24
Local Area Networks in Data Communication DC24Local Area Networks in Data Communication DC24
Local Area Networks in Data Communication DC24koolkampus
 
Bit Oriented Protocols in Data Communication DC23
Bit Oriented Protocols in Data Communication DC23Bit Oriented Protocols in Data Communication DC23
Bit Oriented Protocols in Data Communication DC23koolkampus
 
Data Link Control in Data Communication DC20
Data Link Control in Data Communication DC20Data Link Control in Data Communication DC20
Data Link Control in Data Communication DC20koolkampus
 
Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18koolkampus
 
TDM in Data Communication DC16
TDM in Data Communication DC16TDM in Data Communication DC16
TDM in Data Communication DC16koolkampus
 
Radio Communication Band(Data Communication) DC14
Radio Communication Band(Data Communication) DC14Radio Communication Band(Data Communication) DC14
Radio Communication Band(Data Communication) DC14koolkampus
 
Connectors in Data Communication DC12
Connectors in Data Communication DC12Connectors in Data Communication DC12
Connectors in Data Communication DC12koolkampus
 
Transmission of Digital Data(Data Communication) DC11
Transmission of Digital Data(Data Communication) DC11Transmission of Digital Data(Data Communication) DC11
Transmission of Digital Data(Data Communication) DC11koolkampus
 
Analog to Digital Encoding in Data Communication DC9
Analog to Digital Encoding in Data Communication DC9Analog to Digital Encoding in Data Communication DC9
Analog to Digital Encoding in Data Communication DC9koolkampus
 
Signal with DC Component(Data Communication) DC7
Signal with DC Component(Data Communication) DC7Signal with DC Component(Data Communication) DC7
Signal with DC Component(Data Communication) DC7koolkampus
 
Layer Examples in Data Communication CD4
Layer Examples in Data Communication CD4Layer Examples in Data Communication CD4
Layer Examples in Data Communication CD4koolkampus
 
OSI Model (Data Communication) DC3
OSI Model (Data Communication) DC3OSI Model (Data Communication) DC3
OSI Model (Data Communication) DC3koolkampus
 
Basic Concepts in Data Communication DC1
Basic Concepts in Data Communication DC1Basic Concepts in Data Communication DC1
Basic Concepts in Data Communication DC1koolkampus
 
Token Passing in Data Communication DC25
Token Passing in Data Communication DC25Token Passing in Data Communication DC25
Token Passing in Data Communication DC25koolkampus
 
Data Link Protocols in Data Communication DC22
Data Link Protocols in Data Communication DC22Data Link Protocols in Data Communication DC22
Data Link Protocols in Data Communication DC22koolkampus
 
Flow Control in Data Communication DC21
Flow Control in Data Communication DC21Flow Control in Data Communication DC21
Flow Control in Data Communication DC21koolkampus
 
CRC in Data Communication DC19
CRC in Data Communication DC19CRC in Data Communication DC19
CRC in Data Communication DC19koolkampus
 
Telephone Networn in Data Communication DC17
Telephone Networn in Data Communication DC17Telephone Networn in Data Communication DC17
Telephone Networn in Data Communication DC17koolkampus
 
Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15koolkampus
 
Transmission Media in Data Communication DC13
Transmission Media in Data Communication DC13Transmission Media in Data Communication DC13
Transmission Media in Data Communication DC13koolkampus
 

More from koolkampus (20)

Local Area Networks in Data Communication DC24
Local Area Networks in Data Communication DC24Local Area Networks in Data Communication DC24
Local Area Networks in Data Communication DC24
 
Bit Oriented Protocols in Data Communication DC23
Bit Oriented Protocols in Data Communication DC23Bit Oriented Protocols in Data Communication DC23
Bit Oriented Protocols in Data Communication DC23
 
Data Link Control in Data Communication DC20
Data Link Control in Data Communication DC20Data Link Control in Data Communication DC20
Data Link Control in Data Communication DC20
 
Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18
 
TDM in Data Communication DC16
TDM in Data Communication DC16TDM in Data Communication DC16
TDM in Data Communication DC16
 
Radio Communication Band(Data Communication) DC14
Radio Communication Band(Data Communication) DC14Radio Communication Band(Data Communication) DC14
Radio Communication Band(Data Communication) DC14
 
Connectors in Data Communication DC12
Connectors in Data Communication DC12Connectors in Data Communication DC12
Connectors in Data Communication DC12
 
Transmission of Digital Data(Data Communication) DC11
Transmission of Digital Data(Data Communication) DC11Transmission of Digital Data(Data Communication) DC11
Transmission of Digital Data(Data Communication) DC11
 
Analog to Digital Encoding in Data Communication DC9
Analog to Digital Encoding in Data Communication DC9Analog to Digital Encoding in Data Communication DC9
Analog to Digital Encoding in Data Communication DC9
 
Signal with DC Component(Data Communication) DC7
Signal with DC Component(Data Communication) DC7Signal with DC Component(Data Communication) DC7
Signal with DC Component(Data Communication) DC7
 
Layer Examples in Data Communication CD4
Layer Examples in Data Communication CD4Layer Examples in Data Communication CD4
Layer Examples in Data Communication CD4
 
OSI Model (Data Communication) DC3
OSI Model (Data Communication) DC3OSI Model (Data Communication) DC3
OSI Model (Data Communication) DC3
 
Basic Concepts in Data Communication DC1
Basic Concepts in Data Communication DC1Basic Concepts in Data Communication DC1
Basic Concepts in Data Communication DC1
 
Token Passing in Data Communication DC25
Token Passing in Data Communication DC25Token Passing in Data Communication DC25
Token Passing in Data Communication DC25
 
Data Link Protocols in Data Communication DC22
Data Link Protocols in Data Communication DC22Data Link Protocols in Data Communication DC22
Data Link Protocols in Data Communication DC22
 
Flow Control in Data Communication DC21
Flow Control in Data Communication DC21Flow Control in Data Communication DC21
Flow Control in Data Communication DC21
 
CRC in Data Communication DC19
CRC in Data Communication DC19CRC in Data Communication DC19
CRC in Data Communication DC19
 
Telephone Networn in Data Communication DC17
Telephone Networn in Data Communication DC17Telephone Networn in Data Communication DC17
Telephone Networn in Data Communication DC17
 
Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15Multiplexing in Data Communication DC15
Multiplexing in Data Communication DC15
 
Transmission Media in Data Communication DC13
Transmission Media in Data Communication DC13Transmission Media in Data Communication DC13
Transmission Media in Data Communication DC13
 

Recently uploaded

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
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
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 

Recently uploaded (20)

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
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
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 

4. SQL in DBMS

  • 1.
  • 2. Schema Used in Examples
  • 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.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81. Extra Material on JDBC and Application Architectures
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88. Three Tier Model Application/HTTP Server Servlets JDBC Network HTTP/Application Specific Protocol CGI Program Database Server Client Client Client
  • 89.
  • 91. The loan and borrower Relations
  • 92. The Result of loan inner join borrower on loan.loan-number = borrower.loan-number
  • 93. The Result of loan left outer join borrower on loan-number
  • 94. The Result of loan natural inner join borrower
  • 95. Join Types and Join Conditions
  • 96. The Result of loan natural right outer join borrower
  • 97. The Result of loan full outer join borrower using( loan-number)
  • 98. SQL Data Definition for Part of the Bank Database

Editor's Notes

  1. 1