What Is a Database? • A set of interrelated data, efficiently and centrally coordinated data • Includes information for a related group of files • A file is a related group of records • A record is a related group of fields • A field is a specific attribute of interest for the entity (record)
Advantages of Databases • Data is integrated • Data sharing • Minimize data redundancy and inconsistencies • Data is easily accessed for reporting and cross-functional analysis Database Design • To design a database, you need to have a conceptual view of the entire database. The conceptual view illustrates the different files and relationships between the files. • The data dictionary is a “blueprint” of the structure of the database and includes data elements, field types, programs that use the data element, outputs, and so on.
– Builds the data dictionary, creates the database, describes logical views, and specifies record or field security constraints. • Data Manipulation Language (DML): – Changes database content, including data element creations, updates, insertions, and deletions. • Data Query Language (DQL): – Contains powerful, easy-to-use commands that enable users to retrieve, sort, order, and display data.
• Most DBMS packages contain data definition DDL, data manipulation DML, and data query languages DQL. For each of the following, indicate which language would be used. a. A database administrator defines the logical structure of the database The DDL - this is the language used to define the database. b. The controller requests a cost accounting report containing a list of all employees being paid for more than 10 hours overtime in a given week. The DQL - this is an example of a query. c. A programmer develops a program to update the fixed-assets records stored in the database. The DML - this is the language used to actually process transaction data and update the database.
d. The human resources manager requests a report noting all employees who are retiring within five years. The DQL - another example of a task that involves querying the database e. A user develops a program to print out all purchases made during the past two weeks. The DQL – this listing can be produced by a query. f. An additional field is added to the fixed-asset records to record the estimated salvage value of each asset. The DDL and the DML - the former to add the field, the latter to enter data in it.
Key Terms (1 of 2) • Database • External-level schema • Database management • Subschema system (D B M S) • Conceptual-level schema • Database system • Internal-level schema • Database administrator (D B A) • Access rights • Online transaction processing • Data dictionary database (O LT P) • Data definition language (DDL) • Data warehouse • Structured query language (SQL) • Business intelligence • Data manipulation language (DML) • Online analytical processing • Data query language (DQL) (O LAP) • Report writer • Data mining • Data model • Record layout • Relational data model • Logical view • Tuple • Physical view • Schema