Professional Documents
Culture Documents
understand MS Access.
Warm Up:
S. Question Yes or No
No.
1 DBMS is a collection of
interrelated data
2 DBMS is System software.
3 In DBMS data is stored in
Table
4 In DBMS data is stored in
Table
5 We can store alphabetic and
numeric values in data
base.
6 Table does not have a
primary key.
7 MS Access 2010 is a data
base in MS Office Package
8 Number is the default data
type of MS Access 2010
9 Data Store in the column of a
table is called attribute
10 Data Stored in the table once,
cannot be removed.
Introduction
WHAT IS A DATABASE?
Table
A table is the primary unit of storage of data in a database. The Word web
data in a table is organized in the form of rows (called records)
and columns (called fields). Also, a database might contain Constraints: conditions
multiple tables which are further related to each other. Tables that the fields in the table
store data that the user needs to access. When a user have for ensuring data entry
accesses the database, a table is usually referred to for the of specific type only
desired data. Tables might also have constraints attached to
them which regulate the entry of data into a table.
For example, in the table titled ‘RESULT’ shown below, the marks of the students are
stored in the form of rows and columns.
Fields
Field
A field is a column inside a table that contains only one specific category of information. It is
the smallest logical structure of storage in a database. For example, in the table titled
‘RESULT’ shown above, Roll No is a field containing only the roll numbers of students.
Similarly, Name, Marks and Percentage are the fields that contain information of a particular
type only. All these are fields of the table. Each field in a table is assigned a data type and
this data type determines what type of values can be stored in that field.
Record
A record is a collection of all the fields in a table for a particular data entity. In simple terms, a
row of data in a table defines information about one entity and gives all details about it. For
example, in the table ‘RESULT’, there are four rows, that is, four records. Each row gives
information about one student. The number of rows within a table can be modified by adding
or deleting records.
NOTES:
FILE : A file is a collection of related records
DATABASE MANAGEMENT SYSTEM (DBMS)
A database management system is a software that helps to manage large amount of data. It
involves creating, modifying, deleting and adding data in database in such a way that users
can retrieve and manipulate data efficiently and quickly. DBMS allows users to create their
own database according to their requirements.
Some examples of DBMS are Microsoft Access, MySQL, Oracle, FoxPro, etc.
Advantages of DBMS
1.Enables better data access and response: The DBMS helps to create an environment that
enables the end users to have better access to better-managed data. Such access makes it
possible for end users to respond quickly to the changes in their environment and also makes
it possible to produce quick answers to ad hoc
queries.
2. Better data security: The risks of data security Word web: QUERY
breaches increase as more people access the data. A A query is a specific
DBMS provides a framework for better enforcement of
request issued to the
data privacy and security policies to ensure safety and
proper use of data. DBMS for data
manipulation.
3. Improved data integration: Well-managed data gives a
wider access and promotes an integrated view of the
organization’s operations. It becomes much easier to see how actions in one segment affect
other segments of the organisation. This enables the user to have a clearer view of the big
picture.
4. Minimizes data inconsistency: When different versions of the same data appear in different
places data inconsistency occurs. For example, when a company’s department A stores a sales
representative’s name as “Mr. S. Sharma” and the company’s department B stores that same
person’s name as “Mr. Sidhant Sharma,” or when a company’s regional sales office shows the
price of a product as Rs.50 and its national sales office shows the same product’s price as
Rs.45. Thus, a properly designed database reduces the probability of data inconsistency greatly.
5. Improved decision making: Data quality is a comprehensive approach to promoting the
accuracy, validity, and timeliness of the data. Thus, Well organised data and better data access
generate better-quality information, on which better decisions are based. While the data quality is
not guaranteed by the DBMS, it provides a framework to facilitate data quality initiatives.
6. Increased end-user productivity: The well managed data available, combined with the tools
that transform it into usable information, empowers the end users to make quick, informed
decisions that can result in the success or failure in the global economy
9
WHAT IS MS ACCESS?
MS Access 2010 helps to create browser-based applications so that you can easily share your
database on the web.
13
PRACTICE TIME:
The figure below shows the components of MS Access 2010 user interface. The elements of
MS Access user interface are:
Quick Access Toolbar Title Bar Help Button
Ribbon
Document
Tabs Bar
Navigation
Pane
Record
Navigation Bar
Status Bar
Title Bar
14
Ribbon
The ribbon is present just below the title bar. It consolidates all the buttons for performing tasks at
one place. In MS Access 2010, the main command tabs are File, Home, Create, External Data
and Database Tools. The commands under these tabs are arranged in groups.
Command Tabs
Quick Way
Press Alt or F10 to display the access key of each tab on the ribbon (see figure below). In order to
activate a particular tab, press its corresponding letter on the keyboard. For example, when you press C,
the Create tab will be activated.
Navigation Pane
MS Office 2007 Recall
The navigation pane is present on the left side of the user interface window and it displays a
list of all the objects of the currently active database.
15
Document Tabs Bar
As an object is created in the active database, its tab is added to the document tabs bar.
You can click on the object tab to view or modify that particular database object.
To show or hide the document tabs bar, Current Database tab Document Window Options
follow the steps given below:
Status Bar
The status bar is present at the bottom of the Access window. It displays the status of the active
database. Buttons to change the database view are also present on the right corner. You will
study the views of MS Access 2010 in the next chapter.
The record navigation bar is present on the bottom left of the Navigation pane. It helps to
move across the table from one record to another.
Getting Help
To seek help on working with MS Access 2010, press F1 or click the Help button on the
extreme right of the ribbon.
MS Access 2010 allows you to create your own tabs and groups and add them to the ribbon. This is done
by following the steps given below:
1. Click File menu and select Options.
2. From the submenu, select Customize Ribbon. You can now rename, add, delete or change the
order of the inbuilt tabs or groups on the ribbon.
NOTE: PRIMARY KEY OF A TABLE
A primary key is a unique identifier for a particular record. Every table must have one of the
fields as the primary key. Generally, it is a number but it can be of any data type. The value in
the column acting as a primary key is always unique for that column, that is, it is listed only once
in the table. Also, the column must always have a data value. It cannot be left blank or have a
value as null. For example, in a table containing result of the students, the field Roll No. will be
the primary key as it is unique for every student.
18
Available
File Tab Templates Section Preview Window
File Name
Text Box
Browse Button
Create Button
CREATING A DATABASE
4. The table already contains a field called ID. This field is the primary key of the table.
5. To rename this field, right-click and select
Rename Field option from the drop-down
menu. A cursor will appear in the field name.
Type the new name of the field, say Roll_no.
As you enter data in this new column, MS
Access 2010 automatically scans the data
value entered by you and accordingly sets
the appropriate data type for that field.
6. To set the specific data type of the field, click
the arrow next to the field name. A drop-down
menu containing a list of data types will
appear. Select the required data type.
7. To add more fields to the table, click field
header and choose the desired data type
from the drop-down menu. When the cursor Fig. 1.7: Rename option
appears, type the new field name, say
Student_name and press the Enter key. The cursor
moves on to the next field. Similarly, add English,
Maths and Hindi fields to the table.
8. Click the Save button in the Quick Access Toolbar. The
Save As dialog box appears. Name the table as SA1
and click OK. You will see the name of the table in the Fig. 1.8: Save As dialog box
20 Navigation Pane and also on the Document Tabs Bar.
The following rules should be kept in mind while naming a field in a table:
1. A field name should not be more than 64 characters.
2. It can include letters (lower, upper or mixed case), numbers and a few special characters like an
underscore.
3. It cannot have a period (.), an exclamation mark (!) or square brackets ([]).
4. It cannot start with a blank space.
19
Quick Way
You can open the database in various modes by clicking on the arrow next to the Open button in the
Open dialog box. The various modes in which the database can be opened are as follows:
• Read only—you can view it but cannot edit it.
• Exclusive mode—no one else can open it while you have it open.
• Exclusive Read only mode—other users can still open the database, but they have read-
only access.
SAVING A DATABASE
Computer manners : you should always press the keys on the keyboard gently.
CLOSING MS ACCESS 2010
To close MS Access 2010, click Exit option from the File tab.
Quick Recap
25
D Study the table given below and answer the questions that follow.
TABLE: Items
FA Lab Activity
FA Group Discussions
Divide the class into groups and discuss the ‘Purpose of Database Management System’
FA Research work
A mobile company needs to create a database on its latest product. The database will have fields such as
product ID, product memory, product color, screen size, data connection and product price. State the
datatype of each field. Create the table with 6 records and these fields.
Which field will you set as the primary key and why?
FA fun activity
5
3
1
Teacher’s Notes
26