AnnouncementsData ManagementTraditional File ApproachTraditional File StructuresTraditional File Approach – cont’dMoving to Database Management System (DBMS)Database ModelsSlide 8Slide 9Comparison of Data ModelsMajor Database ProductsComponents of Database Management SystemsAdvantages of using SQLDatabase ArchitectureHow to best support organizational needs with a DBMS?Data WarehousingSlide 17Data MiningSlide 19Discussion QuestionsDiscussion questionsAnnouncementsData ManagementChapter 12Traditional File ApproachStructureField Record FileFixedAll records have common fields, and a field is the same size across all recordsVariableVariable number of fields within a recordVariable size for a field across recordsTraditional File StructuresSequential AccessBatch ProcessMaster File UpdatesIndexed FilesUse an index to locate a specific recordIndexed-SequentialWay to store data sequentially and use indices to accessTraditional File Approach – cont’dAdvantagesSimplicityEfficiencyCustomizationDisadvantagesProgram/Data DependencyData Redundancy Data IntegrityMoving to Database Management System (DBMS)AdvantagesReduced data redundancyApplication/data independenceBetter controlSecurity: Giving users different views addresses security issueFlexibilityQueries: Request data from specified fieldsDatabase ModelsThe Hierarchical ModelRecords are related hierarchically -- each category is a subcategory of the next level upDisadvantages of hierarchical databasesTo retrieve a record, a user must start at the root and navigate the hierarchy.If a link is broken, the entire branch is lost.Requires considerable data redundancyDatabase ModelsThe Network ModelAllows a record to be linked to more than one parentSupports many-to-many (N:M) relationshipsAdvantage of the network modelReduced data redundancyDisadvantages of the network modelComplicated to build and difficult to maintainDifficult to navigateDatabase ModelsThe Relational ModelConsists of tables; links among entities are maintained with foreign keysAdvantages of relational databasesSame advantages of a network database without the complicationsEasier to conceptualize and maintainVirtually all DBMSs offered for microcomputers accommodate the relational modelComparison of Data ModelsHierarchical Network RelationalConceptualization Moderately EasyDifficult EasyEase of Design Very DifficultModerately DifficultDifficultEase of Maintenance Difficult Very Difficult EasyData Redundancy High Low LowEase of Use Moderate Low HighMajor Database ProductsHierarchicalFocus, IMS, BtrieveNetworkAdabas, ImageRelationalAccess, DB2, dBase V, FoxPro, ParadoxOracle, Sybase, Rbase, Sql ServerComponents of Database Management SystemsThe SchemaDescribes the structure of the database The Data Dictionary (Metadata)Maintains all information supplied by the developer when constructing the schemaData Definition Language (DDL)Used to construct the schemaData Manipulation Language (DML)Used to query the databaseAdvantages of using SQLStructured Query Language (SQL)International standard DDL and DML for relational DBMSUsers do not need to learn different DDLs and DMLs.SQL can be embedded in widely used 3rd generation languages, increasing efficiency and effectiveness.Programmer not forced to rewrite statements since SQL statements are portable.Database ArchitectureDistributed DatabasesReplicationFull copy of the entire database is stored at all sitesFragmentation (distributed)Parts of database are stored where they are most often accessedHow to best support organizational needs with a DBMS?Single, large, centralized repositoryPromotes maintenance and securityAs size of database grew, performance sufferedBroadband still emerging, very expensiveMultiple smaller distributed databasesSome combinationDoes everyone need access to real-time data?dbdbdbDistributeddbdbData WarehousingData warehouseCollection of data that supports management decision makingPhases in Building a Data WarehouseExtraction PhaseCleansing PhaseLoading PhaseData MiningSelecting, exploring, and modeling data to discover unknown relationshipsUse data modeling and “AI” techniquesDiscussion QuestionsDistinguish the traditional file approach from the database approach. What are the primary differences in terms of how they store data? What are the advantages and disadvantages of the following types of database models: hierarchical, network, relational, and Object Oriented? What alternative file-access methods are available to implement a database at the physical level? What factors should you consider when choosing among these alternative methods? What is a DBMS and what are some of the key components of a DBMS?Discussion questionsDiscussion questions, pg 446-47: 17, 22, 25, and
View Full Document