0% found this document useful (0 votes)
27 views7 pages

Understanding MS Access Tables and Fields

Uploaded by

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views7 pages

Understanding MS Access Tables and Fields

Uploaded by

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INTRODUCTION TO DATABASE

Database refers to a collection of electronic records that could be processed to


produce useful information. The data can be accessed, modified, managed,
controlled and organized to perform various data-processing operations. The data
is typically indexed across rows, columns and tables that make workload
processing and data querying efficient. There are different types of databases:
Object- oriented, Relational, Distributed, Hierarchical, Network and others.
1. Write full form of RDBMS : Relational Database Management System
2. Name the information stored row wise in a table: Record.
3. Name the information stored column wise in a table: Field

A System to maintain, secure, manage and process the data stored in databases is
known as Database Management System. Database Management System
(DBMS) refers to the technology solution used to optimize and manage the storage
and retrieval of data from databases.

OBJECTS OF MS-ACCESS

MS Access Uses “objects" to help the User list and organize information, as well as
prepare specially designed reports. When you create a database, Access offers
YOU Tables, QUERIEs, Forms, Reports, Macros, and Modules. Databases in
Access are composed of many objects BUT the following are the major objects −

• Tables
• Queries
• Forms
• Reports
• Macros

These objects allow you to enter, store, analyze, and compile your data.
Tables

A database table is composed of records and fields that hold data. Tables are also
called datasheets. Each table in a database holds data about a different, but related,
subject.
Eg:

Database Table

Records

Data is stored in records. A record is composed of fields and contains all the data
about one particular person, company, or item in a database. A record is also
commonly called a row or an instance. A record consists of field values, also
commonly called a fact.

Eg:
In this database, a record contains the data for one customer support incident
report. Records appear as rows in the database table. A record for Log ID
1201242 is highlighted in Figure.

Records appear as rows in a database table.

Fields

A field is part of a record and contains a single piece of data for the subject of the
record. A field is also commonly called a column or an attribute.
Eg:
In the database table illustrated, each record contains four fields:
Log ID, Operator, Resolved, Duration
Fields appear as columns in a database table. Data from the Log ID field for five
records is highlighted in the Figure.

Fields appear as columns in a database table.

QUERY

An object that provides a custom view of data from one or more tables.
QUERIEs are a way of searching for and compiling data from one or more
tables.
Form
Form is an object in a desktop database designed primarily for data input or
display or for control of application execution. You use forms to customize the
presentation of data that your application extracts from QUERIEs or tables.
• Forms are used for entering, modifying, and viewing records.
• When you enter information into a form in Access, the data goes exactly
where the database designer wants it to go in one or more related tables.
Report
Report is an object in desktop databases designed for formatting, calculating,
printing, and summarizing selected data.
• You can view a report on your screen before you print it.
MS Access Data Types:
A data type of the field determines the type of data it can store. To enter data in a
field, you need to select the data type for each field.
The different data types available in MS Access are represented in the table given
below:
Data type Use
Text It is used to store text data. It
accepts text, numbers, combination of
text and numbers.
Number It is used to store numeric data and
decimal values.
Date/Time It is used to store date and time
values. It allow you to display the date
and time to display in various formats.
Currency It is used to store monetary data up to
4 decimal places.
Autonumber It is used to generate a unique
sequential value for each new record
added in a table. If a record is
deleted, its Autonumber value is not
deleted and is not reused.
Yes/No This property can have only two values-
Yes and No
OLE object It is used to store pictures, graphs or
other objects such as MS word, Excel
worksheet.
Hyperlink It is used to create a link to the
location on the computer or a website
link.
Attachment It is used to attach a file to a record
Calculated It is used to store the results of a
calculation that uses data from other
fields.

PRIMARY KEY

A primary key is a special relational database table column (or combination of


columns) designated to uniquely identify all table records.
A primary key's main features are:
• It must contain a unique value for each row of data.
• It cannot contain null values.
CREATING TABLES IN MS ACCESS

Step 1
Click Table Design from the Ribbon
A blank table called Table1 will be displayed in Design View.
Step 2
Add Fields to the Table
Now we will enter each field and select their data type.
In the first cell under Field Name add a field called GRno:. Select Autonumber as
its data type.
Under that field, create a new one called Name and select Short Text for its data
type.
Change the Name Field Properties at the bottom Field Properties frame.
Step 3
Set a Primary Key
Right-click on the GRno: field and select Primary Key from the drop down list.
This makes the field a primary key field. Once you've done this, you'll see a little
key icon to the left of GRno:.

VIEWS IN MS ACCESS

Datasheet View and Design View

Datasheet View displays the table as a grid. The fields are displayed as columns,
and the records are displayed as rows. The field names are listed as the column
headers.
Datasheet View vs Design View

Design View doesn't display any data. In Design View, you can see the data type listed
next to each field.
The way Design View works is, when you click on a field (in the top frame), the
bottom frame displays the properties for that field. You can then change these
properties as required.
Tables in access can be modified by inserting, deleting, hiding and moving fields.
EXERCISE
1. What is database?
Database is a well organised collection of data or information e.g dictionary
, list of student information .
2. Define the term DBMS. Write the purpose of DBMS.
A database management system is a type of application software that provides
ways to access, update, analyse and retrieve data in a database .

3. What is field in database? Give an example.


A column in a database is called a field. Eg: emp_name , emp_id .
4. What is a primary key in database? Give an example.
A single or a combination of fields of fields that can uniquely identifies a
record in a table. It is a unique key that cannot contain duplicate values .

5. Differentiate:

DESIGN VIEW DATASHEET VIEW


• It is used to design • Datasheet view displays grid of
the structure of the rows and columns The column
database . headers are used to define the
• The design view is divided names of fields
into two parts field grid pane • The rows represent the
and field properties pane records and columns represent the
fields.

DBMS RDBMS
• DBMS stores data as a file. • Data is stored in the form of
tables.
• DBMS system, stores data • RDBMS uses a tabular
in either a navigational or structure where the headers are
hierarchical form. the column names, and the
rows contain corresponding
values
• DBMS system mainly deals • RDMS is designed to handle a
with small quantity of data. large amount of data.

6. A table named School (containing data of students of the whole school) is


created, where each record consists of several fields including Admission
(Admission Number), Roll No (Roll Number), Name. Which field out of these
three should be set as the primary key and why?
AdmissionNumber since it is aunique field and cannot be duplicated

Common questions

Powered by AI

Datasheet View displays the table as a grid with field names as column headers and records as rows, making it suitable for data entry and viewing. Design View does not display data; instead, it allows users to define and modify the structure of the database by setting field properties and selecting data types .

Creating a table in MS Access involves adding fields in the design view and selecting their respective data types. To set a primary key, the user selects the field to be designated as such (e.g., GRno:) and chooses 'Primary Key' from the menu, marking it with a key icon to signify its special role in uniquely identifying records .

A primary key is crucial because it ensures each record in a table can be uniquely identified, preventing duplicate entries and maintaining data integrity. Characteristics of a primary key include having a unique value for each row and not allowing null values, which help in consistent data retrieval and table relationships .

An RDBMS stores data in a tabular format where tables have defined relationships, whereas a DBMS stores data as individual files and can use navigational or hierarchical structures. RDBMS is designed to handle large amounts of data, implementing constraints like primary keys to maintain unique data entries, whereas a DBMS often handles smaller datasets .

MS Access includes several data types: 'Text' for storing text and numbers; 'Number' for numeric data and decimals; 'Date/Time' for dates and times; 'Currency' for monetary values; 'Autonumber' for unique sequential values; 'Yes/No' for binary values; 'OLE Object' for storing images or other objects; 'Hyperlink' for creating links; 'Attachment' for file attachments; and 'Calculated' for storing results from calculations based on other fields .

Forms in MS Access provide a structured interface for data input and modification, allowing users to enter, modify, and view records efficiently. They are designed to control application execution and customize data presentation, ensuring the data is input directly into the correct tables as intended by the database designer .

The relational model offers advantages such as easier data retrieval with SQL, flexibility in data queries and updates, and strong data integrity through the use of primary and foreign keys. It supports complex queries and relationships, unlike older models which often require more rigid data planning and can be less intuitive to navigate .

A database designer might use OLE objects to store complex data types like images, graphs, or whole files such as MS Word or Excel documents, allowing rich data integration. Hyperlinks facilitate easy navigation to external resources or websites, enhancing the database's functionality and connectivity .

Reports in MS Access are designed for formatting, calculating, and summarizing selected data. They allow viewing on screen before printing, providing organized and clear summaries of the data, thus facilitating effective decision-making and presentation of findings .

Queries in MS Access enable custom data views and facilitate efficient data manipulation and retrieval from one or more tables. They allow users to search, compile, and filter data based on specific criteria, providing a powerful tool for data analysis and reporting .

You might also like