http://www.softtechies.com |
| Ali Technology Corner | |
|
Relational Database Concept Components of the Relational Models
A table is a set of rows and columns. Each row is a set of columns with only one value for each. All rows from the same table have the same set of columns, although some columns may have NULL values, i.e. the values for that rows was not initialized. Note that a NULL value for a string column is different from an empty string. You should think about a NULL value as an "unknown" value. The rows from a relational table is analogous to a record, and the columns to a field. For example, a company might want to store their employees information in a database. In a relational database, you create several table to store different pieces of information about your employees. EMP Table +-------------------+---------------+----------------------------------+ | EMPNO |Name | TITLE | DEPTNO | +===================+===============+==================================+ | 100 |JOHN DOE | MANAGER | 10 | +-------------------+---------------+----------------------------------+ | 101 |MARY JANE | SALES | 20 + +-------------------+---------------+----------------------------------+ DEPT Table +-------------------+-------------------+-----------------+ | DEPTNO | DEPT_Name | LOCATION | +===================+===================+=================+ | 10 | SYSTEM | NY | +-------------------+-------------------+-----------------+ | 20 | MARKETING | Sales | +-------------------+-------------------+-----------------+ Data Models Purpose of Models
Entity Relationship (ER) Modeling |
||||||||||||||||||||||||