SlideShare a Scribd company logo
Chapter 8: Application Design and Development
Chapter 8: Application Design and Development  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.2 Database System Concepts - 5 th  Edition, Aug 9, 2005.
User Interfaces and Tools ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.3 Database System Concepts - 5 th  Edition, Aug 9, 2005.
The World Wide Web ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.4 Database System Concepts - 5 th  Edition, Aug 9, 2005.
A formatted report ©Silberschatz, Korth and Sudarshan 8.5 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Web Interfaces to Databases ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.6 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Web Interfaces to Database (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.7 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Uniform Resources Locators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.8 Database System Concepts - 5 th  Edition, Aug 9, 2005.
HTML and HTTP ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.9 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Sample HTML Source Text <html> <body> <table border cols = 3>   <tr> <td> A-101 </td> <td> Downtown </td> <td> 500 </td> </tr> … </table> <center> The <i>account</i> relation </center> <form action=“BankQuery” method=get> Select account/loan and enter number <br> <select name=“type”>  <option value=“account” selected> Account <option> value=“Loan”> Loan </select> <input type=text size=5 name=“number”> <input type=submit value=“submit”> </form> </body> </html> ©Silberschatz, Korth and Sudarshan 8.10 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Display of Sample HTML Source ©Silberschatz, Korth and Sudarshan 8.11 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Client Side Scripting and Applets ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.12 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Client Side Scripting and Security ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.13 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Web Servers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.14 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Three-Tier Web Architecture ©Silberschatz, Korth and Sudarshan 8.15 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Two-Tier Web Architecture ©Silberschatz, Korth and Sudarshan 8.16 Database System Concepts - 5 th  Edition, Aug 9, 2005. ,[object Object],[object Object]
HTTP and Sessions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.17 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Sessions and Cookies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.18 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Servlets ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.19 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Example Servlet Code Public class BankQuery(Servlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse result) throws ServletException, IOException { String type = request.getParameter(“type”); String number = request.getParameter(“number”); … code to find the loan amount/account balance … …using JDBC to communicate with the database.. …we assume the value is stored in the variable balance result.setContentType(“text/html”); PrintWriter out = result.getWriter( ); out.println(“<HEAD><TITLE>Query Result</TITLE></HEAD>”); out.println(“<BODY>”); out.println(“Balance on “ + type + number + “=“ + balance); out.println(“</BODY>”); out.close ( ); } } ©Silberschatz, Korth and Sudarshan 8.20 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Server-Side Scripting ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.21 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Improving Web Server Performance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.22 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Triggers ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.23 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Trigger Example  ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.24 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Trigger Example in SQL:1999 create trigger  overdraft-trigger  after update on  account  referencing new row as  nrow  for each row when  nrow.balance  < 0 begin atomic insert into  borrower   (select  customer-name, account-number from  depositor where  nrow.account-number =  depositor.account-number ); insert into  loan  values (n .row.account-number, nrow.branch-name,  – nrow.balance ); update  account  set  balance  = 0 where  account.account-number = nrow.account-number end  ©Silberschatz, Korth and Sudarshan 8.25 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Triggering Events and Actions in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.26 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Statement Level Triggers ,[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.27 Database System Concepts - 5 th  Edition, Aug 9, 2005.
External World Actions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.28 Database System Concepts - 5 th  Edition, Aug 9, 2005.
External World Actions (Cont.) create trigger  reorder-trigger  after update of  amount  on  inventory referencing old row as  orow ,  new row as  nrow for each row when  nrow.level  < = ( select  level from  minlevel where  minlevel.item = orow.item ) and  orow.level  > ( select  level from  minlevel where  minlevel.item = orow.item ) begin insert into  orders ( select  item, amount from  reorder where  reorder.item = orow.item ) end ©Silberschatz, Korth and Sudarshan 8.29 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Triggers in MS-SQLServer Syntax create trigger  overdraft-trigger  on   account for update as  if inserted .balance  < 0 begin insert into  borrower ( select  customer-name,account-number from  depositor ,  inserted where inserted . account-number =  depositor.account-number ) insert into  loan  values ( inserted . account-number ,  inserted . branch-name , –  inserted . balance ) update  account  set  balance  = 0 from  account ,  inserted where  account.account-number  =  inserted . account-number end ©Silberschatz, Korth and Sudarshan 8.30 Database System Concepts - 5 th  Edition, Aug 9, 2005.
When Not To Use Triggers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.31 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Authorization in SQL  (see also Section 4.3) ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.32 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Authorization (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.33 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Authorization and Views ,[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.34 Database System Concepts - 5 th  Edition, Aug 9, 2005.
View Example ,[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.35 Database System Concepts - 5 th  Edition, Aug 9, 2005.
View Example (Cont.) ,[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.36 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Authorization on Views ,[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.37 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Granting of Privileges ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.38 Database System Concepts - 5 th  Edition, Aug 9, 2005. U 1 U 4 U 2 U 5 U 3 DBA
Authorization Grant Graph ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.39 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Security Specification in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.40 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Privileges in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.41 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Privilege To Grant Privileges ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.42 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Roles ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.43 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Revoking Authorization in SQL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.44 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Revoking Authorization in SQL (Cont.) ,[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.45 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Limitations of SQL Authorization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.46 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Audit Trails ,[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.47 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Application Security ,[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.48 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Encryption (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.49 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Authentication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.50 Database System Concepts - 5 th  Edition, Aug 9, 2005.
Digital Certificates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],©Silberschatz, Korth and Sudarshan 8.51 Database System Concepts - 5 th  Edition, Aug 9, 2005.
End of Chapter

More Related Content

What's hot

Ajp notes-chapter-06
Ajp notes-chapter-06Ajp notes-chapter-06
Ajp notes-chapter-06
Ankit Dubey
 
Webservices
WebservicesWebservices
Webservices
Gerard Sylvester
 
Representational state transfer (rest) architectural style1.1
Representational state transfer (rest) architectural style1.1Representational state transfer (rest) architectural style1.1
Representational state transfer (rest) architectural style1.1
Vinod Wilson
 
Constraints Make You Sexy - What is Rest
Constraints Make You Sexy  - What is RestConstraints Make You Sexy  - What is Rest
Constraints Make You Sexy - What is Rest
anorqiu
 
Representational State Transfer (REST)
Representational State Transfer (REST)Representational State Transfer (REST)
Representational State Transfer (REST)
Abhay Ananda Shukla
 
Lessly_Resume_6y5m
Lessly_Resume_6y5mLessly_Resume_6y5m
Lessly_Resume_6y5mLessly Raja
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
NANDINI SHARMA
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
inshu1890
 
Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
Port80 Software
 

What's hot (12)

Ajp notes-chapter-06
Ajp notes-chapter-06Ajp notes-chapter-06
Ajp notes-chapter-06
 
Webservices
WebservicesWebservices
Webservices
 
Representational state transfer (rest) architectural style1.1
Representational state transfer (rest) architectural style1.1Representational state transfer (rest) architectural style1.1
Representational state transfer (rest) architectural style1.1
 
Constraints Make You Sexy - What is Rest
Constraints Make You Sexy  - What is RestConstraints Make You Sexy  - What is Rest
Constraints Make You Sexy - What is Rest
 
Representational State Transfer (REST)
Representational State Transfer (REST)Representational State Transfer (REST)
Representational State Transfer (REST)
 
Ado
AdoAdo
Ado
 
Lessly_Resume_6y5m
Lessly_Resume_6y5mLessly_Resume_6y5m
Lessly_Resume_6y5m
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
Web service
Web serviceWeb service
Web service
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
 

Viewers also liked

Business model
Business modelBusiness model
Business model
Suneel Dogra
 
Trees data structure
Trees data structureTrees data structure
Trees data structure
Mahmoud Alfarra
 
Graphs data Structure
Graphs data StructureGraphs data Structure
Graphs data Structure
Mahmoud Alfarra
 
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJASOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
vtunotesbysree
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
vtunotesbysree
 
Problem Solving with Algorithms and Data Structure - Graphs
Problem Solving with Algorithms and Data Structure - GraphsProblem Solving with Algorithms and Data Structure - Graphs
Problem Solving with Algorithms and Data Structure - Graphs
Yi-Lung Tsai
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
vtunotesbysree
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
Rameesha Sadaqat
 
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
vtunotesbysree
 
Lecture8 data structure(graph)
Lecture8 data structure(graph)Lecture8 data structure(graph)
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
Abrish06
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
Ocw chp6 2searchbinary
Ocw chp6 2searchbinaryOcw chp6 2searchbinary
Ocw chp6 2searchbinary
Prashant Rai
 
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
vtunotesbysree
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURES
bca2010
 

Viewers also liked (18)

ch13
ch13ch13
ch13
 
ch2
ch2ch2
ch2
 
Business model
Business modelBusiness model
Business model
 
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENTDISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
DISTRIBUTED INTERACTIVE VIRTUAL ENVIRONMENT
 
Trees data structure
Trees data structureTrees data structure
Trees data structure
 
Graphs data Structure
Graphs data StructureGraphs data Structure
Graphs data Structure
 
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJASOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
SOLUTION MANUAL OF COMMUNICATION NETWORKS BY ALBERTO LEON GARCIA & INDRA WIDJAJA
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
 
Problem Solving with Algorithms and Data Structure - Graphs
Problem Solving with Algorithms and Data Structure - GraphsProblem Solving with Algorithms and Data Structure - Graphs
Problem Solving with Algorithms and Data Structure - Graphs
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its types
 
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
 
Lecture8 data structure(graph)
Lecture8 data structure(graph)Lecture8 data structure(graph)
Lecture8 data structure(graph)
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Ocw chp6 2searchbinary
Ocw chp6 2searchbinaryOcw chp6 2searchbinary
Ocw chp6 2searchbinary
 
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
 
DATA STRUCTURES
DATA STRUCTURESDATA STRUCTURES
DATA STRUCTURES
 

Similar to ch8

ch9.ppt
ch9.pptch9.ppt
ch9.ppt
ChinnuJose3
 
Ch21
Ch21Ch21
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMSkoolkampus
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
mani bhushan
 
Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environmentguest8fdbdd
 
HTTP and Website Architecture and Middleware
HTTP and Website Architecture and MiddlewareHTTP and Website Architecture and Middleware
HTTP and Website Architecture and Middleware
Abdul Jalil Tamjid
 
Programming Server side with Sevlet
 Programming Server side with Sevlet  Programming Server side with Sevlet
Programming Server side with Sevlet backdoor
 
SERVER SIDE SCRIPTING
SERVER SIDE SCRIPTINGSERVER SIDE SCRIPTING
SERVER SIDE SCRIPTING
Prof Ansari
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2jamram82
 
Chapter 1
Chapter 1Chapter 1
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 
Business Data Communications and Networking 12th Edition FitzGerald Solutions...
Business Data Communications and Networking 12th Edition FitzGerald Solutions...Business Data Communications and Networking 12th Edition FitzGerald Solutions...
Business Data Communications and Networking 12th Edition FitzGerald Solutions...
TylerYuli
 
Unit 1st and 3rd notes of java
Unit 1st and 3rd notes of javaUnit 1st and 3rd notes of java
Unit 1st and 3rd notes of java
Niraj Bharambe
 
Introduction to back-end
Introduction to back-endIntroduction to back-end
Introduction to back-end
Mosaab Ehab
 
Asp dot net final (2)
Asp dot net   final (2)Asp dot net   final (2)
Asp dot net final (2)
Amelina Ahmeti
 
Asp
AspAsp

Similar to ch8 (20)

Ch8
Ch8Ch8
Ch8
 
Ch9
Ch9Ch9
Ch9
 
ch9.ppt
ch9.pptch9.ppt
ch9.ppt
 
Ch21
Ch21Ch21
Ch21
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Internet Environment
Internet  EnvironmentInternet  Environment
Internet Environment
 
HTTP and Website Architecture and Middleware
HTTP and Website Architecture and MiddlewareHTTP and Website Architecture and Middleware
HTTP and Website Architecture and Middleware
 
Programming Server side with Sevlet
 Programming Server side with Sevlet  Programming Server side with Sevlet
Programming Server side with Sevlet
 
SERVER SIDE SCRIPTING
SERVER SIDE SCRIPTINGSERVER SIDE SCRIPTING
SERVER SIDE SCRIPTING
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Business Data Communications and Networking 12th Edition FitzGerald Solutions...
Business Data Communications and Networking 12th Edition FitzGerald Solutions...Business Data Communications and Networking 12th Edition FitzGerald Solutions...
Business Data Communications and Networking 12th Edition FitzGerald Solutions...
 
Metadata describes about data
Metadata describes about dataMetadata describes about data
Metadata describes about data
 
Unit 1st and 3rd notes of java
Unit 1st and 3rd notes of javaUnit 1st and 3rd notes of java
Unit 1st and 3rd notes of java
 
Introduction to back-end
Introduction to back-endIntroduction to back-end
Introduction to back-end
 
Asp dot net final (2)
Asp dot net   final (2)Asp dot net   final (2)
Asp dot net final (2)
 
Asp
AspAsp
Asp
 

More from KITE www.kitecolleges.com (20)

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
 
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
 
week-9x
week-9xweek-9x
week-9x
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 

ch8

  • 1. Chapter 8: Application Design and Development
  • 2.
  • 3.
  • 4.
  • 5. A formatted report ©Silberschatz, Korth and Sudarshan 8.5 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Sample HTML Source Text <html> <body> <table border cols = 3> <tr> <td> A-101 </td> <td> Downtown </td> <td> 500 </td> </tr> … </table> <center> The <i>account</i> relation </center> <form action=“BankQuery” method=get> Select account/loan and enter number <br> <select name=“type”> <option value=“account” selected> Account <option> value=“Loan”> Loan </select> <input type=text size=5 name=“number”> <input type=submit value=“submit”> </form> </body> </html> ©Silberschatz, Korth and Sudarshan 8.10 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 11. Display of Sample HTML Source ©Silberschatz, Korth and Sudarshan 8.11 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 12.
  • 13.
  • 14.
  • 15. Three-Tier Web Architecture ©Silberschatz, Korth and Sudarshan 8.15 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. Example Servlet Code Public class BankQuery(Servlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse result) throws ServletException, IOException { String type = request.getParameter(“type”); String number = request.getParameter(“number”); … code to find the loan amount/account balance … …using JDBC to communicate with the database.. …we assume the value is stored in the variable balance result.setContentType(“text/html”); PrintWriter out = result.getWriter( ); out.println(“<HEAD><TITLE>Query Result</TITLE></HEAD>”); out.println(“<BODY>”); out.println(“Balance on “ + type + number + “=“ + balance); out.println(“</BODY>”); out.close ( ); } } ©Silberschatz, Korth and Sudarshan 8.20 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. Trigger Example in SQL:1999 create trigger overdraft-trigger after update on account referencing new row as nrow for each row when nrow.balance < 0 begin atomic insert into borrower (select customer-name, account-number from depositor where nrow.account-number = depositor.account-number ); insert into loan values (n .row.account-number, nrow.branch-name, – nrow.balance ); update account set balance = 0 where account.account-number = nrow.account-number end ©Silberschatz, Korth and Sudarshan 8.25 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 26.
  • 27.
  • 28.
  • 29. External World Actions (Cont.) create trigger reorder-trigger after update of amount on inventory referencing old row as orow , new row as nrow for each row when nrow.level < = ( select level from minlevel where minlevel.item = orow.item ) and orow.level > ( select level from minlevel where minlevel.item = orow.item ) begin insert into orders ( select item, amount from reorder where reorder.item = orow.item ) end ©Silberschatz, Korth and Sudarshan 8.29 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 30. Triggers in MS-SQLServer Syntax create trigger overdraft-trigger on account for update as if inserted .balance < 0 begin insert into borrower ( select customer-name,account-number from depositor , inserted where inserted . account-number = depositor.account-number ) insert into loan values ( inserted . account-number , inserted . branch-name , – inserted . balance ) update account set balance = 0 from account , inserted where account.account-number = inserted . account-number end ©Silberschatz, Korth and Sudarshan 8.30 Database System Concepts - 5 th Edition, Aug 9, 2005.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.