23
New Perspectives on Computer Concepts 2010 Instructor’s Manual 1 of 23 Computer Concepts Chapter Eleven: Databases A Guide to this Instructor’s Manual: We have designed this Instructor’s Manual to supplement and enhance your teaching experience through classroom activities and a cohesive chapter summary. This document is organized chronologically, using the same heading in blue that you see in the textbook. Under each heading you will find (in order): Lecture Notes that summarize the section, Figures and Boxes found in the section (if any), Teacher Tips, Classroom Activities, and Lab Activities. Pay special attention to teaching tips, and activities geared towards quizzing your students, enhancing their critical thinking skills, and encouraging experimentation within the software. In addition to this Instructor’s Manual, our Instructor’s Resources CD also contains PowerPoint Presentations, Test Banks, and other supplements to aid in your teaching experience. For your students: Our latest online feature, CourseCasts, is a library of weekly podcasts designed to keep your students up to date with the latest in technology news. Direct your students to http://coursecasts.course.com , where they can download the most recent CourseCast onto their mp3 player. Ken Baldauf, host of CourseCasts, is a faculty member of the Florida State University Computer Science Department where he is responsible for teaching technology classes to thousands of FSU students each year. Ken is an expert in the latest technology and sorts through and aggregates the most pertinent news and information for CourseCasts so your students can spend their time enjoying technology, rather than trying to figure it out. Open or close your lecture with a discussion based on the latest CourseCast. Table of Contents Chapter Objectives 2 Section A: File and Database Concepts 2 Section B: Data Management Tools 4 Section C: Database Design 7 Section D: SQL 11 Section E: Database Security 14 Glossary of Key Terms 17

Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

New Perspectives on Computer Concepts 2010 Instructor’s Manual 1 of 18

Computer ConceptsChapter Eleven: Databases

A Guide to this Instructor’s Manual:We have designed this Instructor’s Manual to supplement and enhance your teaching experience through classroom activities and a cohesive chapter summary. This document is organized chronologically, using the same heading in blue that you see in the textbook. Under each heading you will find (in order): Lecture Notes that summarize the section, Figures and Boxes found in the section (if any), Teacher Tips, Classroom Activities, and Lab Activities. Pay special attention to teaching tips, and activities geared towards quizzing your students, enhancing their critical thinking skills, and encouraging experimentation within the software. In addition to this Instructor’s Manual, our Instructor’s Resources CD also contains PowerPoint Presentations, Test Banks, and other supplements to aid in your teaching experience.

For your students: Our latest online feature, CourseCasts, is a library of weekly podcasts designed to keep your students up to date with the latest in technology news. Direct your students to http://coursecasts.course.com, where they can download the most recent CourseCast onto their mp3 player. Ken Baldauf, host of CourseCasts, is a faculty member of the Florida State University Computer Science Department where he is responsible for teaching technology classes to thousands of FSU students each year. Ken is an expert in the latest technology and sorts through and aggregates the most pertinent news and information for CourseCasts so your students can spend their time enjoying technology, rather than trying to figure it out. Open or close your lecture with a discussion based on the latest CourseCast.

Table of Contents Chapter Objectives 2Section A: File and Database Concepts 2Section B: Data Management Tools 4Section C: Database Design 7Section D: SQL 11Section E: Database Security 14Glossary of Key Terms 17

Page 2: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

New Perspectives on Computer Concepts 2010 Instructor’s Manual 2 of 18

Chapter Objectives Students will have mastered the material in Chapter Eleven when they can:

Define basic database terminology, such as fields, records, record types, and cardinality

Describe seven database models and their applications

Explain the capabilities of various data management tools, such as commercial applications, word processing software, spreadsheet software, file management software, and database management software

Describe various ways to provide access to databases over the Web

Explain how to design an effective relational database

List the principles for creating effective report templates

Describe how to add records, delete records, search for information, update fields, and simultaneously access data from multiple tables using SQL queries

Explain how database vulnerabilities affect individuals and organizations

Describe the legal, regulatory, and procedural methods that pertain to database security

List the steps you can take when working with databases to protect your privacy and identity

Page 3: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

SECTION A: FILE AND DATABASE CONCEPTS (610)

Database Basics (610) LECTURE NOTES

Explain that a database is a collection of information, typically stored as a computer file.

Identify databases that are not computer files, such as card files, address books, and rolodexes.

Introduce Vintage Music Shop, a fictitious music store on the Web. It is an example that continues throughout each section.

Explain that data mining is the process of analyzing information in databases to discover previously unknown information, including relationships and patterns.

Introduce OLAP, which is covered on page 613.

TEACHER TIPBased on the description of Vintage Music Shop on page 610, work as a class to list the kinds of data Vintage Music Shop maintains.

FIGURES Figure 11-1, Figure 11-2, Figure 11-3, Figure 11-4

CLASSROOM ACTIVITIES1. Class Discussion: Ask students to brainstorm applications for databases. Do

students use a database at home? List examples that are computer-based and those that are not. What types of organizations use databases?

2. Quick Quiz: A(n) _________ is a collection of information. (Answer: database.) True/False: The data in a typical database is stored in no particular order.

(Answer: True.) Which of the following refers to the process of analyzing existing information in

databases to discover previously unknown, and potentially useful information, including relationships and patterns?a. queryingb. data miningc. analysisd. data warehousing(Answer: B.)

Database Models (614) LECTURE NOTES

Explain that a structured file uses a uniform format to store data for each item in the file.

Explain that a field contains the smallest unit of meaningful information and that each field has a unique field name.

Discuss with students the pros and cons of limiting fields (such as a LastName field) and of allowing unlimited field lengths.

Explain that in database terminology, a record refers to a collection of data fields, and each record stores data about one entity—a person, place, thing, or event.

Distinguish record occurrence and record type. A record occurrence is a particular instance of a record that contains data describing an entity. A record type is the

Page 4: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

general record format—a form that contains blanks for data, but no actual data. Figure 11-8 illustrates the difference between a record occurrence and a record type.

Explain that the flat file model presents the data as a simple two-dimensional table with a single record type.

Discuss the definition of a relationship between record types and why such relationships in a database are important.

Explain that cardinality refers to the number of associations that two record types can have. The three different relationships are one-to-one, one-to-many, and many-to-many. Figure 11-9 shows an ER diagram where the data structure contains rectangles that represent entities (record types) and lines that represent relationships.

Use Figures 11-10 and 11-11 to illustrate hierarchical and network database models.

Explain the relational database model, contrasting this model to the flat file model. Use Figures 11-12 and 11-13 for a detailed walkthrough of relational databases. Explain that this is the most common data model in use today.

Briefly explain the dimensional, object, and object-relational database models, citing the advantages of each. Use Figures 11-14 ,11-15, and 11-16.

TEACHER TIPAsk students to cite cases for Vintage Music Shop in which it would be wise to limit fields to a maximum length, and other cases when leaving a field length unlimited would be most appropriate. Relate the terminology of fields, records, and files to the structure of data discussed earlier in the text.

FIGURES Figure 11-5, Figure 11-6, Figure 11-7, Figure 11-8, Figure 11-9, Figure 11-10,

Figure 11-11, Figure 11-12, Figure 11-13, Figure 11-14, Figure 11-15, Figure 11-16

CLASSROOM ACTIVITIES1. Assign a Project: Have the students create lists of field names for a personal

database. Use examples like a telephone database, music database, recipe database. Is more than one table needed to organize the fields? Note that within a set of tables there could be common fields like the name of the person who gave you the CD or recipe.

2. Quick Quiz: Each field has a unique ______ that describes its content. (Answer: name.) True/False: In database jargon, a relationship is an association between data

that is stored in different record types. (Answer: True.) Which of the following kinds of databases excels in representing items that

have slightly different attributes?a. dimensionalb. objectc. hierarchicald. relational(Answer: B.)

SECTION B: DATA MANAGEMENT TOOLS (622)

Data Management Software (622) LECTURE NOTES

Page 5: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Discuss personal organizers available as standalone products or as part of mobile devices like PDAs, and other simple applications that let users keep small numbers of records.

Explain that a flat data file using tables can be created in a word-processing program, such as Microsoft Word, or a spreadsheet program, such as Microsoft Excel.

Point out that custom software, if poorly designed, may lead to data dependence, where the software and data are dependent on each other. If you change the data or file structure you must also change the program. This approach is fairly costly compared to other approaches.

Explain that one goal for databases is that they have data independence; that is, they separate data from the programs that manipulate the data.

Explain that quality database software is data independent. Using Figure 11-20, discuss when one tool is more appropriate than another.

FIGURES Figure 11-17, Figure 11-18, Figure 11-19, Figure 11-20

CLASSROOM ACTIVITIES1. Assign a Project: Have students think of an application for which they could use a

database at home. Then have them refer to the table in Figure 11-20 and determine what type of tool best fits their needs.

2. Quick Quiz: _____________ refers to data and program modules being so tightly interrelated

that they become difficult to modify. (Answer: Data dependence.) True/False: Modern database software supports data independence. (Answer:

True.)True/False: Data dependence is usually found in well written software. (Answer: False.)

Database Management Systems (625)LECTURE NOTES

Explain that database management systems (DBMS) is designed to manage data stored in a database, and that it includes generalized data management software to manage the data in one or more related files.

Explain that database management software generally supports one of the four database models, and that currently the most popular database management software in use supports the relational database model.

Explain that whereas an entry-level DBMS is designed for personal and small business use, database server software is designed to manage billions of records and several hundred transactions per second.

Using Access as an example of an entry-level DBMS, use Figure 11-21 and demonstrate Access in class, if possible.

Discuss how an entry-level DBMS located on a network allows multiple users to access the database at the same time, and note that there can be problems when users attempt to update the same record at the same time. Explain that database server software is a more robust approach that can manage billions of records and several hundred transactions each second.

TEACHER TIP

Page 6: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Ask students to identify the types of data that are best suited for an entry-level DBMS, and those best suited for database server software.

FIGURES Figure 11-21, Figure 11-22, Figure 11-23

CLASSROOM ACTIVITIES1. Assign a Project: Have students write a brief paragraph describing the following

types of DBMS systems: DBMS, XML DBMS, ODBMS, and RDBMS.2. Quick Quiz:

A(n) _____ allows you to create, update, and administer a relational database. (Answer: RDBMS or relational database management system.)

True/False: A distributed database has data stored on several computers, multiple networks, or in different geographical locations. (Answer: True.)

What does DBMS stand for? (Answer: Database management system.)

Page 7: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Databases and the Web (627)LECTURE NOTES

Explain that while providing database access over the Web requires some ‘tricks’, it does not require special databases or special DBMSs

Discuss how Web-enabled database tools give users the advantages of database management combined with access to the World Wide Web. These tools are a particularly useful resource for e-commerce.

Explain how Web sites can provide access to databases through static Web publishing or dynamic Web publishing.

Use Figures 11-24 and 11-25 to explain Web publishing, and point out the advantages of each approach.

Discuss the HTML forms and XForms that are used to add and update database records over the Web.

Explain the purpose of server-side programs and the tools used to create them.

TEACHER TIPVisit a Web site that uses forms, such as Expedia.com or Travelocity.com. Refer to page 628 and explain the process the Web site uses to display the form and send the form data to a database.

FIGURES Figure 11-24, Figure 11-25, Figure 11-26, Figure 11-27

XML (630)LECTURE NOTES

Explain that XML is a markup language that allows you to incorporate field tags, data, and tables in a Web document.

Use Figure 11-28 to explain that XML helps organize data in context. Explain that an XML document can also contain structured data organized into

fields and records, replacing a traditional database.

FIGURES Figure 11-28, Figure 11-29, Figure 11-30

CLASSROOM ACTIVITIES1. Assign a Project: Have students browse the Internet and find database

management software. Have them list the DBMS data model used, vendor, price and system requirements.

Page 8: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

2. Quick Quiz: Database ______ software allows any remote computer or network workstation

to access data in a database. (Answer: client.) ______ is a technology that can be used to generate an HTML document which

contains scripts.a. ASPb. CGIc. PHPd. HTML(Answer: A.)

______ is a mark-up language that allows fields tags, data and table to be incorporated into a Web document via scripts.a. ASPb. CGIc. PHPd. XML(Answer: D.)

SECTION C: DATABASE DESIGN (633)

Defining Fields (633) LECTURE NOTES

Discuss the first step in designing a database – determining what data you want to collect and store then defining the fields to hold that data. Remind them to break up the data when appropriate.

Use Figure 11-31 to illustrate the benefits of breaking data into fields. Explain the definition and purpose of a primary key. Explain the definition and purpose of data types. Review the data types listed in

Figure 11-33. Stress the need to validate data before it is stored in the database, and discuss

some validation techniques. Explain the process and purpose of normalization.

FIGURES Figure 11-31, Figure 11-32, Figure 11-33, Figure 11-34, Figure 11-35, Figure 11-36

CLASSROOM ACTIVITIES1. Class Discussion: List the commonly used data types. Have a list of data values on

the board and ask students to identify the appropriate data type for each.2. Quick Quiz:

The term _____________ refers to the arrangement of fields, records, tables, and relationships in a database. (Answer: database structure.)

True/False: A computed data field permanently holds a computed value and, so, requires disk storage space. (Answer: False.)

True/False: The hyperlink data type stores URLs used to link directly from a database to a Web page. (Answer: True.)

Normalization (637)LECTURE NOTES

Page 9: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Discuss the process of normalization. Review the goals of normalization. Eliminating data redundancy as part of the

normalization process will make it easier to update the database. It also saves storage space.

Explain that the next step in designing a database is to group the fields into tables, attempting to minimize data redundancy. Once this is done, then identify any relationships among the tables.

Note that a one-to-many relationship between items often indicates that the data should be separated into two or more tables.

FIGURES Figure 11-37, Figure 11-38, Figure 11-39

CLASSROOM ACTIVITIES1. Assign a Project: Have the students list the groups of fields they would use, or do

use, in their home-use databases.2. Quick Quiz:

_____________ is the process used by database designers to create a database structure that can save storage space, increase processing efficiency, and minimize data redundancy. (Answer: Normalization.)

True/False: The goal of normalization is to minimize data redundancy. (Answer: True.)

______________ is the amount of data that is repeated or duplicated in a database. (Answer: Data redundancy.)

Organizing Records (639)LECTURE NOTES

Compare and contrast sorting and indexing. One powerful feature of databases is that they can present data in various ways depending on how their tables are sorted or indexed.

Explain that the sort order is the order in which records are stored on disk. Point out that databases work more efficiently when their data is sorted. Explain that a sort key usually determines how the records are sorted. For

example, a table can use the record number as the sort key, and then store the records in numerical order.

Explain that a database index contains a list of keys, with each key referencing the record that contains the rest of the fields related to that key. Use Figure 11-40 to illustrate this concept.

Note that an index is not related to how the records are stored on disk. Tables are usually indexed by any fields that are commonly used as search fields, such as Customer Name.

TEACHER TIPEnsure that students understand that a sort key is not the same thing as a primary key. The sort key is one or more fields used to specify where new records are inserted in a table. The primary key is a field that contains data unique to a record.

FIGURES Figure 11-40

Page 10: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

CLASSROOM ACTIVITIES1. Assign a Project: Give students an example of a table with at least 5 records. Have

students identify the sort order and suggest which field(s) can be used as an index.

2. Quick Quiz: A table’s _______ is one or more fields used to specify where new records will be

inserted in a table. (Answer: sort key.) True/False: The primary key is always used as the sort key. (Answer: False.) What does a database index contain? (Answer: It contains a list of keys, each

with a pointer to the records that contains the rest of the fields.)

Designing the Interface (640)LECTURE NOTES

Explain that the database interface is the window into which users will enter data. For students interested in programming, mention Visual Basic and Visual C# as languages often used to create user interface forms.

Emphasize that it is important to keep the user in mind when designing the interface form. A well-designed user interface is clear, intuitive, and efficient. The order of the fields should make sense for the user of the database, not the designer.

Explain that the design should also make clear which entry box corresponds to which label. The labels themselves should be meaningful, informative, and provide instructions for entering data into the field.

TEACHER TIPShow examples of database interfaces, if possible, and ask students to evaluate them. If you don’t have access to a variety of databases, use Figures 11-41 and 11-42, which show the same data entry screen designed in two ways.

FIGURES Figure 11-41, Figure 11-42

CLASSROOM ACTIVITIES1. Class Discussion: Create a business scenario where a user interface must be

created (a health club application interface, for example). List relevant fields and ask students to sketch a well-designed interface to be used to enter data for the fields. Refer them to page 641 for a list of design principles. Have them evaluate each others interfaces.

2. Quick Quiz: True/False: The way that database records, queries, and reports appear on the

screen depends on the user interface. (Answer: True.) True/False: Entry areas should appear in a consistent position relative to their

labels. (Answer: True.) True/False: Including on-screen instructions in a database interface is not

recommended. (Answer: False.)

Designing Report Templates (642)LECTURE NOTES

Explain that a report generator in a DBMS is used to create reports. Explain that, like forms, reports should be designed with the user in mind.

Page 11: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Use the list on page 643 to identify the hallmarks of a well-designed report.

FIGURES Figure 11-43, Figure 11-44

CLASSROOM ACTIVITIES1. Class Discussion: On an overhead display device, show some examples of report

templates. Have students determine whether they are well or poorly designed and list the reasons why.

2. Quick Quiz: A(n) ____________ is a software tool for specifying the content and format for a

database report. (Answer: report generator.) A(n) __________ contains the outline or general specifications for a report,

including such elements as the report title, fields to include, fields to subtotal or total, and report format specifications.. (Answer: report template.)

True/False: Data is merged into a report template as soon as you complete the template. (Answer: False.)

Loading Data (644)LECTURE NOTES

Explain that entering data can be tedious and cumbersome. To avoid data redundancy and errors, you can use an importing and exporting tool.

Discuss the use of generic data entry tools supplied with a DBMS, like import and export routines.

Note that custom conversion, import and export routines are sometimes used, but that such routines require time and knowledge about the database formats to write.

TEACHER TIPIf possible, import a flat file into an Access database. You could also show how to use data created in other programs, such as a Word table or an Excel spreadsheet, into an Access database.

LAB ACTIVITYThe Lab “Working with Database Software” deals with issues that relate to this section of the textbook. You might want to go through the lab during class time if you have a computer with a projection device. Or, assign this lab for students to do outside of class.

CLASSROOM ACTIVITIES1. Assign a Project: Have students define a list of fields, organize the records, and

remove any redundancy. Have them design an input screen.

Page 12: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

2. Quick Quiz: Fixed length fields that hold character data, such as people’s names, should be

assigned the ______ type. (Answer: text data.) True/False: A computed field is a calculation that a DBMS performs during

processing, and then temporarily stores in a memory location. (Answer: True.) If data exists electronically in another type of database file or in flat files, it is

usually possible to transfer the data using a(n) ______.a. custom-written conversion routineb. import routinec. export routined. all of the above(Answer: D.)

SECTION D: SQL (645)

SQL Basics (645) LECTURE NOTES

Define the terms query language and query. Explain the role of a query language. Explain that an SQL query is a command used to retrieve specific information from

a relational database. For example, the query SELECT * FROM Employee where Gender = ‘F’ would select records for all female employees.

Familiarize students with the SQL commands listed in Figure 11-46. In addition, discuss the use of parameters and their use with WHERE.

TEACHER TIPTake time in class to dissect an SQL statement, such as SELECT * FROM Employee where Gender = 'F', so students understand how that statement works to select certain records.

FIGURES Figure 11-45, Figure 11-46

CLASSROOM ACTIVITIES1. Class Discussion: Give students a small table with at least 10 records. On an

overhead display device or whiteboard, show some example SQL queries and have students determine the results of the queries.

2. Quick Quiz: ________ are detailed specifications for a command. (Answer: Parameters.) What does SQL stand for? (Answer: Structured Query Language.) True/False: An SQL query typically begins with an action keyword. (Answer:

True.)

Adding Records (647)LECTURE NOTES

Explain that SQL statements using the keyword INSERT add data to a database. Refer to Figure 11-47 for an example of an INSERT statement and how it relates to

the WebMusic database. Use the SQL feature in Access to show students how to construct an INSERT

statement. Use the sample Northwind database in Access and add a record to one of its tables.

FIGURES Figure 11-47

Page 13: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

CLASSROOM ACTIVITIES1. Quick Quiz:

What command adds data to a table? (Answer: INSERT.) True/False: You cannot add records to a database. (Answer: False.)

Searching for Information (648)LECTURE NOTES

Explain that SQL statements use the keyword SELECT to search for a record or group of records.

Dissect the statement SELECT CDName, CDCover FROM CompactDisks WHERE ArtistName = ‘Natalie Merchant’ as an example of an SQL SELECT statement.

Review Boolean operators. SQL can also perform more complex searches using Boolean operators, which students might be familiar with from searching the Internet.

Point out that a key to success is structuring focused queries. Reviewing Boolean logic (and, or, not) helps students create focused queries.

TEACHER TIPConsider spending class time reviewing examples of the appropriate use of operators.

FIGURES Figure 11-48

CLASSROOM ACTIVITIES1. Assign a Project: Give students a table with at least 10 records. Have them create

3 complex SQL searches using OR and/or AND search operators.2. Quick Quiz:

One of the most common database operations is to query for a particular record or group of records by using the ________ command. (Answer: SELECT.)

What are three SQL search operators? (Answers: AND, OR, NOT.) True/False: SQL cannot perform complex searches that include both an AND

operator and an OR operator. (Answer: False.)

Updating Fields (650)LECTURE NOTES

Note that an SQL statement using the UPDATE keyword can change the records in a database (if you have the right to do so).

Analyze the sample UPDATE statements on page 650. Note that the first statement reduces the number of albums in stock and the second statement performs a global update.

FIGURES Figure 11-49

CLASSROOM ACTIVITIES

Page 14: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

1. Quick Quiz: A(n) ________ changes the data in more than one record at a time. (Answer:

global update.) Which command would be used to change the data in some or all records in a

database? (Answer: UPDATE.) True/False: You can change records in a database only if you have

authorization to do so. (Answer: True.)

Joining Tables (651)LECTURE NOTES

Explain that in SQL terminology, creating a relationship between tables is called joining tables.

Use Figure 11-50 to show an example of two tables that have a relationship. Show students how to use the SQL JOIN command to join and access the data in

more than one table. Review Figure 11-51 to illustrate how the JOIN command can be used with other

SQL commands.

FIGURES Figure 11-50, Figure 11-51

LAB ACTIVITY Refer students to the New Perspectives Web site for a Student Edition Lab called

“Advanced Databases.”

CLASSROOM ACTIVITIES1. Assign a Project: Give students two related database tables, each with at least 10

records (for example, a student table containing student ID, major, etc. and a course table listing enrolled students by student ID, etc.). Have students work in groups of two to create queries using JOIN.

2. Quick Quiz True/False: In a relational database, tables remain essentially independent

unless joined. (Answer: True.) True/False: The SQL command that adds data to a table is the ADD command.

(Answer: False.) Using the following SQL code:

SELECT INVName FROM InventoryTableWHERE (ProductName = ‘Shirt’ AND ProductPrice < 100.00)Results will include which of the following?a. Shirt, 150.00b. Shirt, 100.00c. Hat, 125.00d. Shirt, 99.00(Answer: D.)

SECTION E: DATABASE SECURITY (653)

Database Vulnerabilities (653)

Page 15: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

LECTURE NOTES Discuss the following points on page 653: data for millions of people has been

stolen, hacked, or simply gone missing; the average American is in at least 50 databases.

Explain that people who are active users of online music stores and Web sites such as MySpace or Facebook are likely to be in many more databases.

FIGURES Figure 11-52

CLASSROOM ACTIVITIES1. Class Discussion: Ask students if the security of their personal information has ever

been breached. Have their banks issued them new PINs for ATM cards as a result of a security breach? Have they received new credit cards from their credit card company for this reason? Have they ever had unauthorized charges on any of their accounts?

2. Quick Quiz: True/False: Every time a person fills out a survey, registers with a Web site,

visits a doctor or uses a credit card that information is stored in a database. (Answer: True.)

True/False: The qualities that make a database efficient also make it invulnerable. (Answer: False.)

Database Security Measures (654)LECTURE NOTES

Explain that no computer system can be 100% secure. Note that there are security measures that can be used to make data more secure. Discuss the benefits and costs of encrypting data. Discuss how access controls can be used to limit who accesses the database and

how they can interact with it. Explain how user privileges and data views are used to control database access.

Note that businesses may periodically conduct database audits to look for abnormal usage patterns.

TEACHER TIPIf possible, show students what encrypted data looks like.

FIGURES Figure 11-53, Figure 11-54

CLASSROOM ACTIVITIES1. Class Discussion: Ask students which of the security measures listed in this section

they believe is the most effective. Why?2. Quick Quiz:

List 3 security measures that can be taken to protect a database. (Answers: Encryption, access controls, data security policies, and intrusion monitoring.)

A(n) ________ established which fields and records a particular user is allowed to access. (Answer: data view.)

True/False: A database administrator can limit the way individuals or groups access data. (Answer: True.)

Database Security Regulations (656)

Page 16: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

LECTURE NOTES Explain that while government databases have some of the most stringent

regulations, laws governing private sector databases offer spotty protection. Discuss phishing emails. Refer to the e-mail shown in Figure 11-55.

FIGURES Figure 11-55

CLASSROOM ACTIVITIES1. Class Discussion: Ask students if they think that industry self-regulation is enough

to protect consumers’ privacy. Why or why not? 2. Quick Quiz:

Laws dating back to the _____ cover disclosure of telephone and cable records. (Answer: 1950s.)

True/False: Regulations in the private sector are, in most cases, more stringent than those imposed on the government. (Answer: False.)

True/False: The U.S. has the most stringent privacy regulations in the world. (Answer: False.)

What Individuals Can Do (658)LECTURE NOTES

Emphasize that the key to minimizing risk is being very cautious about the information divulged.

Stress the need to read privacy statements before providing personal information. Use Figure 11-56 in your discussion of portable password managers.

TEACHER TIPSurvey students about the guidelines listed on pages 658 and 659. How many of these suggestions do they follow on a regular basis?

FIGURES Figure 11-56, Figure 11-57

Page 17: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

CLASSROOM ACTIVITIES1. Quick Quiz:

True/False: When registering to use a Web site, always provide all the information requested. (Answer: False.)

True/False: Some Web sites have an opt-out button if you don’t want your data distributed to third parties. (Answer: True.)A data ____ establishes which fields and records a particular user is allowed to access. (Answer: view.)

Page 18: Microsoft Office 2003virgil.azwestern.edu/~cvb/CIS120/Book Notes/NP2010_IM... · Web viewExplain how Web sites can provide access to databases through static Web publishing or dynamic

Glossary of Key Terms access control (655) BLOB (binary large object) 635 cardinality (616) case sensitive database (636) computed field (635) data dependence (624) data independence (624) data mining (612) data redundancy (637) data type (634) data view (655) data warehouse (612) database (610) database audit (656) database client software (626) database index (639) database model (614) database server software (626) database structure (633) date data type (634) DBMS (database management

system) (625 dimensional database (619) distributed database (626) dynamic Web publishing (628) entity-relationship diagram (616) executive dashboard software (613) field (615) field format (636) field name (615) field validation rule (636) fixed-length field (615) flat file (614) global update (650) hierarchical database (617) hyperlink data type (635) INSERT (647) integer data type (634) JOIN (651) joining tables (651) logical data type (634) many-to-many relationship (616)

memo data type (634) network database (617) normalization (637) object database (620) object-relational database (621) ODBMS (object database

management system) (625) OLAP (online analytical processing)

(613) one-to-many relationship (616) one-to-one relationship (616) parameters (647) predictive analytics (613) primary key (634) RDBMS (relational database

management system) (625 real data type (634) record (615) record occurrence (615) record type (615) relational database (618) relationship (616) report generator (642) report template (642) SELECT (648) server-side program (628) sort key (639) sort order (639) SQL (Structured Query Language)

(645) SQL keywords (646) SQL query (645) static Web publishing (627) structured file (614) table (618) text data type (634) UPDATE (650) unstructured file (614) user privileges (655) variable-length field (615) XForms (629) SML (630) XML DBMS (625)

Top of Document