Nursing and Databases • Collection of data organized and structured in such a way that selections from it are retrievable, singly or as a group • Relational database: data from more than one table can be integrated as if it were in one table.
Creation of Database • Identify the question data needs to answer. • Identify pieces of data needed to answer question. • Determine column or field for each item. • Create table (name each field, designate type and description of data field will contain). • Enter data into the table to test design. • Adjust, creating another table “related” to master table.
Overview of Databases • Forms – Data stored in table
– Form view showing all fields related to the record for which data must be entered (see Figure 9-7) – Useful for data entry and for viewing data for one record
Overview of Databases (Cont.) • Data saving – Data entry saved as soon as insertion point moved from the record where it was entered – Possible to undo one change, but only the last change made – Deletion of record is permanent. – Save objects such as table or form after creation or change in design.
Database Searching • Query: one characteristic giving databases power; one of most powerful tools
• Boolean logic querying – Based on algebra; data in field either are or are not a match – “And”: all specified terms returned – “OR”: at least one of the words – “Not”: one term but not the other
Database Searching (Cont.) • Record requirements – Structured format (organized by categories identified by labels) – A field for the data: database must contain the field. – Use of standardized terminology for data entry
Database Models • Flat database: all data in one table, that is, spreadsheet worksheet • Hierarchical database: tables organized in the shape of an inverted tree (see Figure 9-16) • Network model: similar to hierarchical model but tree can share branches • Relational database model: two or more tables connected by identical information in fields in each table (key fields)
Database Models (Cont.) • Database Management System (DBMS) – Application program with tools for creating database, entering data, retrieving, manipulating, and reporting information contained within data