SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Kürzlich hochgeladen

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.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.