Data is a
collection of numbers, letters, or even symbols.
Once we understand what the data means, it becomes information.
A collection of related data stored in a specific
format to simplify retrieval is called a database (db or DB).
Database Management Systems (DBMS) are programs that help in the storage and retrieval
of information from databases. (MS Access and Oracle are examples.)
Data in a relational database is organized in rows
(also called records) and columns (called fields).
A list of related data organized in fields and records
is called a database Table.
Queries -
question structures to sort, filter and select specific information. A
query is not the data that results but a set of instructions specifying how
specific records or combinations of records should be extracted… it is the
process of asking the database for specific information. A query is a
question about the data in the database.
Forms -
structures for screen views of data. A form is not data that results but
a set of instructions specifying a screen view format of the data. These
forms are designed to simplify data display, inputting and editing.
Reports -
structures for written/printed output of data. A report is not the data
that results but a set of instructions specifying the format of written output.
Program Modules
- program code to perform specific actions
Relational Databases:
DBMS verses Spreadsheet
|
Database systems: |
Spreadsheets: |
|
Store and retrieve
data |
Store and analyze
data |
|
Provide support for
organization and easy selection/retrieval of data |
Provide support for
complex calculations |
|
Can do simple
calculations |
Can do simple data organizing
and selecting |
|
Efficient data
handling |
Inefficient data
handling |
|
Multi-user |
Single use |
|
Handle lots of data
well |
Size limited by
memory |
Primary key
Foreign key
Writing queries involves:
QBE verses SQL
Relational operators which can be used in
queries: = , <= , >= , <> ,
< , >
For example:
<= 10
returns
records where field value is less than or equal to 10
< “G”
returns
records where field text begins with letters A through F
>
“Jones” returns records where
field text is after Jones (alphabetically)
Boolean Operators used in queries:
And, Or, Not. For
example:
“BE”
Or “BA” returns records where field value is either (any of)
“BE” or “BA”
Not
“BE” returns
records where field value is not equal to “BE”
>5 And
<10 returns records where field
value is greater than 5 and less than 10
Wild cards characters for use in queries:
Asterisk ( * ) and question mark ( ? )
An asterisk ( * ) replaces
any number of characters. For
example:
Like “C*”
returns records
where field value starts with “C” no matter its length
Like “*cookie*” returns
records including the word cookie anywhere in the field value
A question mark ( ? )
replaces a single character. For
Example:
Like
“B?” returns
records where field value has “B” as its first character and only one other
character after the “B”
Null values: