Operate Database Application
Operate Database Application
Level-II
1) Database objects
2) Basic Database settings
3) Forms
4) Information Retrieval
5) Reports
Unit one: Database Object
Introduction to Database
Basic design principles
Database object
Relationship
Record
What is database?
A database is an organized collection of data, so that it can be easily
accessed and managed.
Database is the collection of organized data that is structured and
stored electronically on a computer system.
Databases can store data in the form of tables depending upon the
type of database.
The database's primary goal is to store a huge amount of data.
Database Design Principle
• The designer determines what data must be stored and how the data
elements interrelate.
• With this information, they can begin to fit the data to the database model.
•Usability
•Extensibility
•Data
•Integrity
•Entity Integrity
•Domain Integrity
•Referential Integrity
•User defined integrity
•Performance:
•
Open & Design Database Application
Entering unique names of the columns of the table in the “field name” column
of the design view.
Names of fields and objects in Microsoft Access can be up to 64 characters
long.
They can include any combination of letters, numbers, spaces, and special
characters except a period (.), an exclamation point (!), an accent grave (`), and
brackets ([ ]).
They also can't begin with leading spaces
Data types in Microsoft Access
• Text: allows for the storage of any kind of data, characters, digits and
special characters.
• Memo: is used for texts of more than 255 characters such as comments
or explanations.
• Number: for numerical data used in mathematical calculations.
• Date/Time: for the introduction of date and time from the year 100 to
9999.
• Currency: For monetary/economic values and numerical data used in
mathematical calculations in which the data involved contains between
one and four decimals.
• Auto number: a unique sequential number (increasing one by one), or a
number that Access assigns every time it adds a new record to a table.
Data types in Microsoft Access………
• Yes/No:Yes and No values, and fields that contain one of two values (Yes/No,
True/False or Activated/Deactivated).
• OLE Object: an object such as a Microsoft Excel spreadsheet, a Microsoft
Word document, graphics, images, sounds, or other binaries.
• Used to embed or link to documents from other programs like Excel and Word.
• Hyperlink: text or a combination of text and numbers stored as text and used
as a hyperlink address.
• Attachment: Used to store files in an Access database.
• The attachment data type lets you store one or more files per record.
• Lookup wizard…: A lookup wizard field lets the user choose from a
predefined set of options, like a "male" or "female" selection or a "country"
selection
Normalization
• Eliminating redundant data (for example, storing the same data in more
than one table)
• Both used to reduce the amount of space a database consumes and ensure
that data is logically stored
Data base Relationships
Are associations between tables that are created using join statements to
retrieve data.
Each primary key value relates to none or only one record in the related
table.
Allow you to describe the connections between different database tables
in powerful ways.
Once you’ve described the relationships between your tables, you can
later leverage that information to perform powerful cross-table queries,
known as joins.
Is a logical connection between two tables .
One of the huge advantages of a relational database is that, once you have
your data held in clearly defined, compact tables, you can connect or relate
the data held in different tables.
Types of keys
Primary Key
Foreign Key
Types of Database Relationships
Entity
An entity can be a person, place, event, or object that is relevant to a given
system.
For example, a school system may include students, teachers, major
courses, subjects, fees, and other items.
Entities are represented in ER diagrams by a rectangle and named using
singular nouns.
Attribute
An attribute is a property, trait, or characteristic of an entity, relationship, or
another attribute.
An entity can have as many attributes as necessary.
• attributes can also have their own specific attributes.
• For example, the attribute “customer address” can have the attributes
number, street, city, and state.
• These are called composite attributes.
• Attributes are represented by oval shapes.
Relationship
Describes how entities interact.
For example, the entity “carpenter” may be related to the entity “table” by the
relationship “builds” or “makes”.
Relationships are represented by diamond shapes and are labeled using verbs.
There are more elements which are based on the main elements. These are:
Weak Entity
Depends on the existence of another entity.
Cannot be identified by its own attributes.
It uses a foreign key combined with its attributed to form the primary key.
Multi valued Attribute
Symbol Meaning
This is the current record; the record has been saved as it appears. The current record is indicated by a
change in color in the record selector.
You are editing this record; changes to the record aren't yet saved.
This is the primary key field and contains a value that uniquely identifies the record.