SlideShare une entreprise Scribd logo
1  sur  52
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

Contenu connexe

Tendances

Ajp notes-chapter-06
Ajp notes-chapter-06Ajp notes-chapter-06
Ajp notes-chapter-06Ankit Dubey
 
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.1Vinod 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 Restanorqiu
 
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 SyllabusNANDINI SHARMA
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3inshu1890
 
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 StartedPort80 Software
 

Tendances (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
 

En vedette

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 WIDJAJAvtunotesbysree
 
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 - GraphsYi-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 PAPERSvtunotesbysree
 
Data structure & its types
Data structure & its typesData structure & its types
Data structure & its typesRameesha 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
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structureAbrish06
 
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 2searchbinaryPrashant 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 STRUCTURESbca2010
 

En vedette (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
 

Similaire à ch8

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
 
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 MiddlewareAbdul 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 SCRIPTINGProf Ansari
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2jamram82
 
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 javaNiraj Bharambe
 
Introduction to back-end
Introduction to back-endIntroduction to back-end
Introduction to back-endMosaab Ehab
 

Similaire à 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
 

Plus de 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
 

Dernier

4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
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
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
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
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
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
 
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
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Dernier (20)

4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
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
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
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
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
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
 
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
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
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
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 

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.