INFSY540 Information Resources in Management

Embed Size (px)

DESCRIPTION

INFSY540 Information Resources in Management. Lesson 6 Chapter 5 Database Management. Portfolio and Ecommerce HTML Assignment. Assignment is on course web space at http://www.courses.psu.edu/infsy/infsy540/rak13/HTML_Portfolio.html Part of the assignment is to do research on ecommerce. - PowerPoint PPT Presentation

Text of INFSY540 Information Resources in Management

  • INFSY540Information Resources in ManagementLesson 6

    Chapter 5Database Management

    Slide *

    Portfolio and Ecommerce HTML AssignmentAssignment is on course web space at http://www.courses.psu.edu/infsy/infsy540/rak13/HTML_Portfolio.htmlPart of the assignment is to do research on ecommerce.The first version of your portfolio.html page and subsequent sections of your site must be posted by the October 31st class. The final site must be online by November 28. There are individual and team activities that need to take place between these times.

    Slide *

    Case 2: Cisco Systems ArchitectureWhats this case about?When did Cisco go public?What does Cisco stand for?What is Ciscos mission?

    IT Interaction Modelhttp://equity.stern.nyu.edu/~msilver/mbacore/itimhdo.htm

    Slide *

    Learning ObjectivesKnow the difference between a database and a spreadsheet.Identify the objects available in a relational database and their purpose.Know the difference between a query and a filter.Identify typical problems that occur with MS Access and other personal vice enterprise databases.

    Slide *

    Shared DataPoorly organized data prevents sharing that data with other databasesThink of all the databases that lists your name, department, etc.:Messiah College Phone List DatabaseStudents Using College Networked ComputersStudents Using Dining FacilityStudents Using Nursing Facility

    Slide *

    Database Management SystemComputer program designed to help a user store and retrieve dataAccess, Oracle, DB2

    Slide *

    DBMSabcd 1234defg 12asd 123kghb 112abcd 1234defg 12asd 123kghb 112abcd 1234 123asd 123 12kghb 112 34abcd 1234defg 12asd 123kghb 112tablesformsqueryabcd 1234defg 12asd 123kghb 112abcd 1234 123asd 123 12kghb 112 34reportslabelsDataDictionaryOutside ApplicationsDBMSEngineattachedimport

  • The Traditional versus the Database Approach to Data Management

    Slide *

    Fig 5.3

    Slide *

    Problems with the Traditional ApproachData redundancyProgram-data dependenceInflexibility

    Slide *

    Fig 5.4

  • Data Modeling & Database Models

    Slide *

    Data Design IssuesContent: What data should be collected?Access: What data should be given to what users?Logical structure: How will the data be organized to make sense to a particular user?Physical organization: Where will the data actually be located?

    Slide *

    Data ModelingLogical designPhysical designPlanned data redundancyData model

    Slide *

    Data ModelsHierarchical modelsNetwork modelsRelational models

    Slide *

    Fig 5.6

    Slide *

    Fig 5.7

    Slide *

    Fig 5.8

    Slide *

    OperationsSelect rowsProject columnsJoin tables

    Slide *

    Fig 5.9

    Slide *

    Object-Relational Database Management SystemsStores objectsHypertextHypermediaSpatial data technology

    Slide *

    Database Management Systems (DBMSs)Provide a user viewProvide tools to create & modify the databaseStore & retrieve dataManipulate dataProduce reports

    Slide *

    Selecting a DBMSNumber of concurrent users Database sizePerformanceIntegrationFeaturesVendorCost

    Slide *

    Database DevelopmentsData warehousesData martsData miningOnline analytical processing (OLAP)

    Slide *

    What Is a Database?Database: Table:

    Record:

    Field:

    Slide *

    What Is a Database?Database: a collection of dataTable: the primary element for collecting data, organized into rows and columnsRecord: an individual entry in a table (row)Field: a piece of data in a record (column)

    Slide *

    Access97: A Database ExampleField (column)Record (row)Table

    Slide *

    Access Database ObjectsTable:

    Query:

    Form:

    Report:

    Macro/Module:

    Slide *

    Access Database ObjectsTable: Used to store and manipulate data.Query: Used to retrieve information.Form: Used to view one record of data.Report: Used to present, calculate, summarize, and print table data.Macro/Module: Used to automate frequently performed procedures.

    Slide *

    The database window is the command center; it provides the means to create, view, and edit database objects, such as tables, forms, and reports.Control iconObject tabsProcessing or Command Buttons

    Slide *

    What is the difference between a database and a spreadsheet?

    Slide *

    Excel SpreadsheetUse Microsoft Excel to analyze financial and statistical data.

    Sheet1

    Cost Per Month

    VideosMusic CDsTotal

    Susie422567

    Jacob383674

    Total8061141

    Slide *

    Access DatabaseUse Microsoft Access to create, maintain, and summarize very large quantities of data.

    Slide *

    Why do databases in spreadsheets?Because we canWe use 1 or 2 massive tablesLots of tables make the database complexDiscomfort with databases and multiple tablesBecause we think its simpleSkip organizing the data into relational tablesGo straight to designing formsNAME POSITIONSPOUSECHILDRENPHONEJonesChiefGloria,Karen3274SmithClerkBetty3241JonesChiefMary Glorai, Karen3296

    Slide *

    Data Redundancy ProblemsRedundancy breeds errorsSame data defined in multiple places is BADSpelling/typographical error proneLack of data integrityInability to perform simple queriesInflexibility and inscalabilityImpossible to MAINTAIN!

    Slide *

    Relational DatabasePROJECTCHIEFProject Project ChiefComputing 333-22-1111Intranet 987-65-4321Contracting 123-45-6789Jordan 333-22-1111DEPARTMENTSDeptDept. DirectorRoomEngr181-94-5676B115Math987-65-4321123M&B123-45-6789147EMPLOYEESLNameFNameSSN DeptJonesMike123-45-6789 M&BSmithTony987-65-4321 MathLeeBruce 567-89-1234 EngrrDoodleYankee333-22-1111 M&B11

    Slide *

    ExampleEmployeeSSNL NameF NameRankSpouseChildrenOffice Phone#Home Phone#Office Room#Dept Dept. ChiefEmpProjProject NameEmployee SSN Function

    Must know all constraints on dataproject name is uniqueonly one chief per projectemployees can have more than one phone#employees can have only one officemany employees can use the same office

    Slide *

    Just a ReminderA table is a single object within a databaseA database can have other objects such as queries, forms, reports, macros, and programming modulesHowever, at least one table object must be created before you can create any other type of object

    Slide *

    Database Design TemplatesCHOOSE: File, New Database or CLICK: New Database buttonDesignTemplates

    Slide *

    How Do I Create a Table?Using Datasheet View (Usually used for entering data into records)Using the Table Wizard (Usually used for creating tables)Using Design View (Usually used for creating tables and editing fields)Sample Table in Datasheet View

    Slide *

    Using the Table WizardPick fields from existing business and personal table structures

    Slide *

    Using Design ViewSpecify field names, data types, and indexes from scratchDefine fields and data typesDefine field propertiesNote: Fields are shown in rows in the design view, not in columns.

    Slide *

    Field Data TypesTextMemoNumberDate/TimeCurrencyAutonumberYes/NoOLE ObjectHyperlinkLookup Wizard

    Slide *

    Field PropertiesField SizeFormatDecimal PlacesInput MaskCaptionDefault ValueValidation RuleValidation TextRequiredAllow Zero LengthIndexed

    Slide *

    Primary Keys (Are extremely important in databases.)Primary key is a field that uniquely identifies each record in a tableData is automatically displayed in the datasheet sorted by the primary key.There are 3 types of primary keys: AutoNumber, Single-Field, and MultiField.You can use Access AutoNumber as a primary key (since it is unique) but it is not a good idea.CHOOSE: Edit, Primary Key or CLICK: Primary Key button

    Slide *

    Primary KeysA primary key is one or more data fields (columns) that uniquely identify each record in the tableWhat would the primary key be below?table of employees, assigned to a department.EMPLOYEESLNameFNameSSNDeptJonesMike123-45-6789MathSmithTony987-65-4321 M&BLeeBruce 567-89-1234Science

    Slide *

    IndexesLike Primary Key, can be used to determine the order in which data is displayedCLICK: Indexes buttonPrimary KeyIndex DefinitionIndexes can slow down data entry. Access automatically creates indexes for fields with ID in their names.

    Slide *

    Access Uses Automatic Saving CLICK: a cell using the mouse pointerMake changes to the cells information.SELECT: another record to save the changesCHOOSE: Edit, Undo from the menu if you want to reverse the most recent changesNote: This is a very important difference between Access and other Office 2000 products..

    Slide *

    Customizing Datasheet ViewRemember: formatting changes are not saved automatically. Only structural and data changes are saved automatically.

    Slide *

    Adjusting Column WidthsDRAG: the column border between the field names at the top of the window DOUBLE-CLICK: the column border to have Access calculate the best-width Column Borders

    Slide *

    Adjusting Row HeightsDRAG: the border between rows to change all row heights in the datasheetRow Borders

    Slide *

    Reordering FieldsSELECT: the entire field columnDRAG: field name to move the columnTo save the Datasheet view: CLICK: Save button

    Slide *

    Sorting RecordsAllows you to better organize and present data; makes information out of raw data (alphabetical phone listing)SELECT: column or field to sort CLICK: Sort Ascending button CLICK: Sort Descending button

    Slide *

    FiltersLets you limit the display of records in a table using a simple matching criterionMethods for filtering data: Filter For Input Filter By Selection Filter Excluding Selection Filter By Form