0% found this document useful (0 votes)
19 views

Databases and MS ACCESS

Uploaded by

vivekrader
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Databases and MS ACCESS

Uploaded by

vivekrader
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Data and Databases

DATA
Data are the raw bits and pieces of information with no context. If I told you,
“15, 23, 14, 85,” you would not have learned anything. But I would have given
you data.

Data can be quantitative or qualitative.

Quantitative data is numeric, the result of a measurement, count, or some other


mathematical calculation.

Qualitative data is descriptive. “Ruby Red,” the color of a 2013 Ford Focus, is an example of
qualitative data. A number can be qualitative too: if I tell you my favorite number is 5, that is qualitative
data because it is descriptive, not the result of a measurement or mathematical calculation.

By itself, data is not that useful. To be useful, it needs to be given context.


Returning to the example above, if I told you that “15, 23, 14, and 85″ are the numbers of
students that had registered for upcoming classes, that would be information. By adding the context – that
the numbers represent the count of students registering for specific classes – I have converted data into
information.

Once we have put our data into context, aggregated and analyzed it, we can use
it to make decisions for our organization. We can say that this consumption of
information produces knowledge. This knowledge can be used to make
decisions, set policies, and even spark innovation.
The final step up the information ladder is the step from knowledge (knowing a
lot about a topic) to wisdom. We can say that someone has wisdom when they
can combine their knowledge and experience to produce a deeper understanding
of a topic. It often takes many years to develop wisdom on a particular topic,
and requires patience.

DATABASES
The goal of many information systems is to transform data into information in
order to generate knowledge that can be used for decision making. In order to
do this, the system must be able to take data, put the data into context, and
provide tools for aggregation and analysis. A database is designed for just such
a purpose.
A database is an organized collection of related information. It is an organized
collection, because in a database, all data is described and associated with other
data. All information in a database should be related as well; separate databases
should be created to manage unrelated information.
For example, a database that contains information about students should not also
hold information about company stock prices. Databases are not always digital –
a filing cabinet, for instance, might be considered a form of database. For the
purposes of this text, we will only consider digital databases.

RELATIONAL DATABASES
Databases can be organized in many different ways, and thus take many forms.
The most popular form of database today is the relational database. Popular
examples of relational databases are Microsoft Access, MySQL, and Oracle. A
relational database is one in which data is organized into one or more tables. Each
table has a set of fields, which define the nature of the data stored in the table. A
record is one instance of a set of fields in a table. To visualize this, think of the
records as the rows of the table and the fields as the columns of the table. In the
example below, we have a table of student information, with each row
representing a student and each column representing one piece of information
about the student.
DESIGNING A DATABASE
Suppose a university wants to create an information system to track participation
in student clubs. After interviewing several people, the design team learns that
the goal of implementing the system is to give better insight into how the
university funds clubs. This will be accomplished by tracking how many
members each club has and how active the clubs are. From this, the team decides
that the system must keep track of the clubs, their members, and their events.
Using this information, the design team determines that the following tables need
to be created:

Clubs: this will track the club name, the club president, and a short description
of the club.
Students: student name, e-mail, and year of birth.
Memberships: this table will correlate students with clubs, allowing us to have
any given student join multiple clubs.
Events: this table will track when the clubs meet and how many students
showed up.

Now that the design team has determined which tables to create, they need to
define the specific information that each table will hold. This requires identifying
the fields that will be in each table. For example, Club Name would be one of the
fields in the Clubs table. First Name and Last Name would be fields in the
Students table. Finally, since this will be a relational database, every table
should have a field in common with at least one other table (in other words: they
should have a relationship with each other).

In order to properly create this relationship, a primary key must be selected for
each table. This key is a unique identifier for each record in the table.

You can see the final database design in the figure below:
The Difference between a
Database and a Spreadsheet
Many times, when introducing the concept of databases to students, they quickly
decide that a database is pretty much the same as a spreadsheet. After all, a
spreadsheet stores data in an organized fashion, using rows and columns, and
looks very similar to a database table. This misunderstanding extends beyond the
classroom: spreadsheets are used as a substitute for databases in all types of
situations every day, all over the world.

To be fair, for simple uses, a spreadsheet can substitute for a database quite well.
If a simple listing of rows and columns (a single table) is all that is needed, then
creating a database is probably overkill. In our Student Clubs example, if we only
needed to track a listing of clubs, the number of members, and the contact
information for the president, we could get away with a single spreadsheet.
However, the need to include a listing of events and the names of members would
be problematic if tracked with a spreadsheet.

When several types of data must be mixed together, or when the relationships
between these types of data are complex, then a spreadsheet is not the best
solution. A database allows data from several entities (such as students, clubs,
memberships, and events) to all be related together into one whole. While a
spreadsheet does allow you to define what kinds of values can be entered into its
cells, a database provides more intuitive and powerful ways to define the types of
data that go into each field, reducing possible errors and allowing for easier
analysis.
Though not good for replacing databases, spreadsheets can be ideal tools for
analyzing the data stored in a database. A spreadsheet package can be connected
to a specific table or query in a database and used to create charts or perform
analysis on that data.
MICROSOFT -ACCESS
MICROSOFT AND ITS HISTORY

• Microsoft is a multinational computer technology corporation.


• Microsoft began on April 4, 1975, when it was founded by Bill
Gates and Paul Allen.
• Windows in the 1990s, had captured over 90% market share of the
world's personal computers.
• As of 2020, Microsoft has a global annual revenue of US$ 143.02
billion.
• It develops, manufactures, licenses, and supports a wide range of
software products for computing devices.

INTRODUCTION TO MS – ACCESS

 MS ACCESS also known as Microsoft Access OR Microsoft Office


Access, it is a DATABASE MANAGEMENT SYSTEM from Microsoft .
It is a member of the Microsoft Office suite of applications, included in
the Professional and higher editions or sold separately.
 Microsoft released the first version of Access in 1.0 in 1992. It was soon
replaced with Access 1.1 in 1993 and then later with Access 2.0 .

The other versions of MS – Access were:-


 Access 95
 Access 97
 Access 2000
 Access 2002
 Access 2003
 Access 2007
 Access 2010 and so on

 Microsoft Access combines the relational Microsoft Jet Database Engine


with a Graphical user interface and software-development tools. It helps
us manage data stored in a computer database. A Database is a tool for
collecting and organizing information. Database can store information
about people, products, orders, or anything else.
● An Access database stores its tables in a single file, along with other
objects, such as forms, reports, macros, and modules. Databases
created in the Access 2010 format have the file extension .accdb and
databases created in earlier Access formats have the file extension
.mdb

USING ACCESS, WE CAN DO THE FOLLOWING :

• Add new data to a database, such as a new item in an inventory


• Edit existing data in the database, such as changing the current location
of an item
• Organize and view the data in different ways
• Share the data with others via reports, e-mail messages, an intranet, or
the Internet.

DATASHEET

In Access, data is stored in tables.

A datasheet displays the information stored in a table, in columns and rows.


The columns are called fields. These are attributes. For eg:- name, phone
number etc.
The rows are called records. It is a collection of attribute related to an entity.
For eg:- data of A in students details file.
You can use a datasheet to create a table, enter data, retrieve data, and
perform other tasks.

Database File: This is your main file that encompasses the


entire database and that is saved to your hard-drive or floppy
disk.
Table: A table is a collection of data about a specific topic..
Field: Fields are the different categories within a Table.
Tables usually contain multiple fields.
Data types: Data types are the properties of each field. A field only
has 1 data type.(text, number…)
STARTING MS – ACCESS

START ALL MICROSOFT MICROSOFT


BUTTON PROGRAMS OFFICE ACCESS

TABLES
 A table is a collection of data about a specific topic, such as students
or contacts. Using a separate table for each topic means that you
store that data only once, which makes your database more efficient,
and reduces data-entry errors.
Tables organize data into columns (called fields) and rows (called records).
DATASHEET VIEW
Datasheet View : A view that displays data from a table, form, query, view,
or stored procedure in a row-and-column format. In Datasheet view, you can
edit fields, add and delete data, and search for data. In Access 2007, you
can also modify and add fields to a table in Datasheet view.

CREATE A TABLE IN DATASHEET VIEW

Datasheet view provides a visual way to create a table.

1. Start by creating a new, blank database or by adding a new table to an


existing database. Either method opens a new table in Datasheet view.
2. Notice that the new table contains a field called ID. That’s your primary
key, so you don’t need to create one.

3. To add your fields, click the first blank field header – the words Click
to Add. That starts a menu of data types, and you select a data type
for the field. After that, the field header then becomes available for
writing, so...
4. You just type the field name and press ENTER. Doing that shifts the
focus to the next field, where you repeat the process. As you work,
remember that if your field names contain more than one word, don’t
use spaces between the words.
5. When you’ve finished, press CTRL+S, or go to the Quick Access
Toolbar and click Save. That starts a Save As dialog box, where you
enter a name for the table and then save it.

DESIGN VIEW
A view that shows the design of these database objects: tables, queries,
forms, reports, and macros. In Design view, you can create new database
objects and modify the design of existing objects.

Design view allows you to build a table from scratch and set or change
every available property for each field.

You can also open existing tables in Design view and add, remove, or
change fields.
1. On the Create tab, in the Tables group, click Table Design.
2. In the Field Name column of the designer, enter the names of your
table fields. As a rule, the first field you create should be your primary
key field. And remember that you don’t need to add any foreign key
fields now. You can do that when you create your relationships.
3. In the Data Type column, use the list next to a field name to choose a
data type for that field.
4. Optionally, use the Field Properties pane to set properties for
individual fields.

TABLE AND FIELD PROPERTIES


In an Access database, TABLE PROPERTIES are attributes of a table that
affect the appearance or behaviour of the table as a whole. A table opens in
Design view and its properties are set in the table’s property sheet. For
example, one can set a table’s Default View property to specify how the table
is displayed by default.

A FIELD PROPERTY defines one of the field's characteristics or an aspect


of the field's Behaviors and applies to a particular field in a table through
Datasheet view. One can also set any field property in Design view by using
the Field Properties pane.

A characteristic of a field that


determines what kind of data it can
store.
For example: a field whose data type
is Text can store data consisting of
either text or numeric characters, but
a Number field can store only
numerical data.

PRIMARY KEY

 One or more fields (columns) whose value or values uniquely identify


each record in a table.
 A primary key does not allow Null values and must always have a
unique value. A primary key is used to relate a table to foreign keys in
other tables.
 NOTE: You do not have to define a primary key, but it's usually a good
idea. If you don't define a primary key, Microsoft Access asks you if
you would like to create one when you save the table.
To do this, simply select the # field and select the primary key button After
you do this, Save the table

ENTERING DATA

 Click on the Datasheet View and simply start by entering the data into
each field.

MANIPULATING DATA
• Adding a new row
Simply drop down to a new line and enter the information
• Updating a record
Simply select the record and field you want to update, and change its data
with what you want
• Deleting a record
Simply select the entire row and hit the Delete Key on the keyboard

SORT AND FILTER GROUP

FILTER :A set of criteria applied to data in order to display a subset of the


data or to sort the data. In Access, you can use filtering techniques, such as
Filter By Selection and Filter By Form, to filter data.

For example: you can view the records of only


those people whose birthdays fall during a
specific month by clicking the appropriate menu
commands
The filters that are available to
you depend on the type of data
that is in the selected column.

All Dates in Period filters ignore


the day and year portion of the
date values.

Icons in the column header and


the record navigator bar indicate
that the current view is filtered on
the Birth Date column.

Hovering the mouse over the


column heading displays a tip
showing the current filter
criterion.

Microsoft Access SORTS records in ascending or descending order without


regard to case.
The following table demonstrates, how an ascending sort order in Access
differs from a case- sensitive sort order

You might also like