CHAPTER-2
Microsoft Office Access
Understanding a Database
A database or an electronic database refers to an organized collection of data stored on a computer in such a way that its contents can be quickly accessed, updated and queried with the help of a software program.
About Database management System (DBMS)
A (DBMS) is a computer program which provides facilities to add, modify or delete data from the database, ask question (or queries) about the data stored in the database andproduce reports summarizing selected contents.
Relation Database management System (RDBMS)
A Relation Database is a type of database where data is stored in a number of separated but related tables. The software that allows you to create and manage a relational database is called a Relation Database Management System (RDBMS).
Advantages of Database
1. Reduces Data Redundancy
2. Improves Data Consistency
3. Data Sharing and Protection
4. Maintains Data Integrity
5. Organized Storage of Data
Microsoft office Access 2010
Microsoft Office Access 2010 is a Relation Database Management System (RDBMS) from
Microsoft and is provided as a part of Microsoft Office Suite.
Objects of Ms Access
Object | Purpose |
---|---|
Table | All data is stored in tables. When you create a new table, Access asks you to define filed (Column headings), giving each a unique name, defining the data type. |
Queries | With a query, you can display the records that match certain criteria, sort the data required , and even combine data from different tables. |
Forms | These are screens for displaying data and entering / updating data in the tables. |
Reports | These are formatted output to display / Print batches or records. |
1. Click on the Create tab and click on the table button.2. The empty table structure layout will open in the datasheet view. First we willspecify the data type and rename the fields.3. Click on the ‘click to add’ and select the data type. Specify the name for thefield. Press the tab key to go next field4. To enter data click below the field name and enter the data.
Saving the Table- To save the Table structure which you have just created, click on the Close button of the table window. In the Save As dialog box enter a name for the Table and click on the Ok button.
Opening/Entering of Data in the Table
1 Double click on the Table name in the Navigation pane.
2 The table will open in the datasheet view.
Now you can enter / modify the data.
Inserting New Fields
1. Right click on the field name before which you want to insert the field.
2. Click on the Insert column.
The new column(filed) will be inserted. You can rename the field as required.
Deleting Fields
1. Right click on the field name before which you want to insert the field.
2. Click on the Delete column.
The column (field) will be deleted.
To Create a Table in Design View
1. Click on the Create tab.
2. Click on the Table button
3. Click on the Arrowhead of the view button. Select the Design view option.
4. The save As dialog box opens. Give a name to the Table and click on the OK button.
5. You will see one field with the field name “ID” automatically inserted with the Auto Number Type.
6. You can click in the cell below the ID field and type the name of the new field name. Type the Field name and press the Enter key.
7. The cursor will shift on the Data Type column. Select the data type for the field. Add the description if required.
Primary key for the Table- The primary key is used to define the Data in Field uniquely
(there should be no duplicate value). it helps to make searching faster.