www.chagoyan.com |
|||||||||||||||||||||||
![]() DatabasesDatabases are collections of related data. They can be on paper, on computers, on cell phones, and even on napkins. Any collection of related data is a database. Several examples of databases include your cell phone's contact list, an address book, and the yellow pages listings. Databases software is used to manage data, such as customers, products, vendors, employees, and students. In this class the focus will be computer databases management systems (DBMS), using Microsoft Access and MySQL (for Web Page Design 2). There are many advantages to using computer databases. For example:
Using a database is not difficult. The challenge comes in creating and updating databases. In order to create (develop) databases, you must first learn some basic terminology: Database: A collection of related data usually organized in tables. For example, the Aeries database at CHS manages all student data, such as your student id and class schedule. Tables: Collection of records about entities. Tables are composed of fields that describe entities. Entities can be students, classes, and teachers. Fields: Attributes are characteristics of an entity (Person, Place, Thing). These characteristics describe the entity. For example, the following characteristics describe the student entity. All students in the database will have a studentID, FirstName, LastName, Birthday, Grade, and Gender.
Records: A set of related fields, such as the characteristics of one student. A record does not include the field name, only the data. The following characteristics apply to the student named David Hanson.
Relational database management systems (RDBMS), such as Access and MySQL, store data in tables. These tables are associated (related) in some manner and are, therefore, linked. We will explore table relationships later. For now we will focus on Access as our starting point. AccessMicrosoft Access is used for small department databases. It is a good start for learning about relational databases. What you learn with Access can be applied to Oracle, SQL Server, MySQL and many other relational database management systems. Access utilizes four objects to manage data. These objects include tables, (composed of fields and rows), forms, queries, and reports. Table: A collection of records about entities displayed in spreadsheet format Tables are the most important objects in your database. They store all the raw data, the individual pieces of information stored in the fields of the database. When designing a table you select the fields the table will contain. You also select the data type for each field. For example, the FirstName field uses the text data type, the Birthday field uses the date/time data type, and the Grade field uses the Number data type. When designing tables you: Determine the purpose of the database. Determine the output (reports) of the database. Determine the input (source data) of the database. Determine the structure of each table. You also need to determine how tables are related so you can insert foreign keys. Again, we will discuss how tables have relationships and are, therefore, linked. Data TypesThere are several data types to choose from including:
Forms Reports Queries SQL It is helpful to think of a database as a file cabinet. Each drawer in the cabinet is a table, which stores multiple files (records) and each file includes fields. ![]() Databases can start off as paper systems. Use the following application to move data from paper to electronic database. |
|
||||||||||||||||||||||