cs181 introduction to database and the web
DESCRIPTION
CS181 Introduction to Database and the Web. Class hour: 9:55AM-10:45AM MWF. Hyer Hall 210. Course Objectives. Create databases, tables, queries, forms and write reports using RDBMS Develop and publish web sites using HTML, and CSS. Textbook/Technology requirement. Textbook: - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/1.jpg)
CS181 Introduction to Database and the WebClass hour: 9:55AM-10:45AM MWF.Hyer Hall 210
![Page 2: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/2.jpg)
Course Objectives
• Create databases, tables, queries, forms and write reports using RDBMS
• Develop and publish web sites using HTML, and CSS.
![Page 3: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/3.jpg)
Textbook/Technology requirement
Textbook:1. HTML for the World Wide Web with XHTML and CSS. Elizabeth Castro. 2003. Peachpit Press.2. Special Edition Using Microsoft Access 2002. Roger Jennings. 2002. Que Press.
Software:Microsoft Access
![Page 4: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/4.jpg)
Introduction
Tell me about yourself and what you expect to get out from this course
![Page 5: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/5.jpg)
Self-Introduction• Recently graduated from the
University of Connecticut (05 Class), Ph.D in Computer Science and Engineering
• Bachelor of Science from Hanoi University of Technology (86-91)
• Master of Computer Science from UW-Milwaukee (96-99)
![Page 6: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/6.jpg)
Self-Introduction
• Research Experience:– User Modeling, Information Retrieval,
Decision Theory, Collaborative Filtering, Human Factors
• Teaching Experience:– CS181, 271, 172 Fall 05 at UWW– Introduction courses at UOP and Devry– TA for Computer Architecture, OO Design,
Compiler, Artificial Intelligence
![Page 7: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/7.jpg)
Self-Introduction
• Teaching philosophy:– Interactive– Adaptive– Pro-active– Collaborative
• Other hobbies (non-academic related)– Movies– College Basketball– Family activities
![Page 8: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/8.jpg)
Contact information
Baker Hall 324
Office Hours: 2:15-4:15pm, MWF or by appointment
262 472 5170
![Page 9: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/9.jpg)
Course detail - Topics
Develop simple three tier application
Database (back-end)
HTML & Java script(front-end)
Connecting these two together
![Page 10: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/10.jpg)
Course detail - Evaluation
GRADABLE POINTS WEIGHTING
Project 1 300 30%
Project 2 200 20%
Midterm 200 20%
Final exam 300 30%
Totals 1000 100%
![Page 11: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/11.jpg)
What does it take to success
• Hard working, well-organization, pay attention to detail
• Participate in the class discussion
• Practice, practice, practice!!!
![Page 12: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/12.jpg)
Questions?
![Page 13: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/13.jpg)
Introduction to Database and Database Design
![Page 14: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/14.jpg)
Introduction to Database
• Why are databases important?
• How do databases represent information?
• Who works with databases?
• How do databases support the World Wide Web?
• What database concepts and terms do you need to know?
![Page 15: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/15.jpg)
Why Are Databases Important?
• Importance to business– Walmart: Records of retail business
• Size of warehouses• Size of inventory• Average sales per $ of inventory
– Amazon.com: Records of customers
• Importance to Web– Records of interactions/transactions– Example of auction site, customers’s
preferences/behaviors
![Page 16: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/16.jpg)
Importance of Databases to Economy
• Expanding use of databases in retail sales– Walmart, retail sales information tracking
• Examples of analyses– Sales of items
• Comparisons between daily totals of items sold and items in inventory; seasonal variations in sales of specific and similar items; relative sales of similar items with different features
– Market-basket collections (all items in a single purchase)• Average and variation in total purchase amount/number & price
of items.• Correlation between sales of items in a single purchase
– Customer analysis• Behavior of average customer• Preferences of individual customers
![Page 17: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/17.jpg)
How Do Databases Represent Information?
• The physical database:– a collection of files containing the data content
• The schema: – a specification of the physical database’s information content
and logical structure
• The database engine: – software that lets people access and modify the database
contents
• The data definition and manipulation languages: – programming languages, such as Java or SQL (Structured
Query Language), that let software developers define the schema and access the database
![Page 18: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/18.jpg)
How Do Databases Represent Information?
• Relational database management system (RDBMS)– Tables of data– Schema
• Name of table• Names and types of attributes
– Contents• Row is a fact• Attribute value is a characteristic
![Page 19: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/19.jpg)
Example of storing information of a department
Department table
Dept Manager Description
101 017-11-0031
Marketing
102 018-21-2131
Accounting
103 019-41-1231
Customer service
Schema Depts(dept,manager,description)
Table creation statement
create table depts(dept char(3), manager char(11), description char(25))
![Page 20: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/20.jpg)
Example of storing information of a department
Insert data into table
insert into depts (dept, manager,description)
values ('001','017-11-0031',‘marketing');
![Page 21: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/21.jpg)
Practice
• Open Microsoft Access
• Name your database as Example
• Create a new table “By Design View” named Department with 2 fields:– Dept: text (3 characters)- Manager: text (11 characters)- Description: text (100 characters)
![Page 22: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/22.jpg)
Who Works with Database Systems?
• Database designers
• Applications developers
• Web-application developers
• Web-site designers
• Database administrators
![Page 23: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/23.jpg)
How Do Databases Support the World Wide Web?
• Maintain information that is published in the site• Track the ways in which site visitors use that
information• Track the number of site visitors and customers• Store information collected from input forms
such as requests for customer addresses• Store the structure and content of Web pages
![Page 24: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/24.jpg)
Information Systems
• Three separate types of functionality:– Data Management– Application logic– Presentation
![Page 25: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/25.jpg)
Single-tier architecture
• All functionality combined into a single tier (e.g mainframe where users access through dumb terminal or stand-alone machine where there is no server)
• Pros: easy maintenance and administration
• Cons: missing GUI, single point failure
![Page 26: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/26.jpg)
Client-server architecture
• Thin client– Client implements only the GUI– Server implements business logic
and data management
• Pros: easy maintenance and implementation
• Cons:can’t separate between business logic and data management
![Page 27: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/27.jpg)
Client-server architecture
• Thick client– Client implements both GUI and
business logic– Server implements data
management
• Cons: no central place to update the business logic– Security: trust clients– Scalability: problems with 100s of
clients
![Page 28: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/28.jpg)
Three tier architecture
Presentationtier
Middle tier
Data management tier
Client program
Database server
Application server
![Page 29: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/29.jpg)
Three tier architecture• Pros:
– Heterogeneous systems– Thin clients– Integrated data access– Scalability– Development:
• Code for business logic is centralized• Interaction between tiers through well-
defined APIs.
![Page 30: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/30.jpg)
Timeline for Database Systems Developments
• before 1960 transition from punched card and tape• 1960s, from file management to databases• 1970s, CODASYL and Relational Model
– Codd (IBM) Relational Model– Chen introduced Entity Relationship Model– Query languages developed (SQL)
• 1980s, Client/Server DBs, Oracle, DB2• 1990s, web-based information delivery
– Trends: expert DBs, object DBs, distributed DBs• 2000s, Enhancing database technology for Web
storage and access– Bioinformatics: genetic and protein information,
medical records– Using the Web as a database
![Page 31: CS181 Introduction to Database and the Web](https://reader035.vdocuments.site/reader035/viewer/2022062321/568135e6550346895d9d5a6b/html5/thumbnails/31.jpg)
Questions?