Mod 3
Mod 3
Do note how Departments and Administration are entirely unlike each other and yet fall under
the domain of a university. They are elements that form this hierarchy.
Another perspective advises visualizing the data being organized in a parent-child relationship,
which upon addition of multiple data elements would resemble a tree. The child records are
linked to the parent record using a field, and so the parent record is allowed multiple child
records. However, vice versa is not possible.
Notice that due to such a structure, hierarchical databases are not easily salable; the addition of
data elements requires a lengthy traversal through the database.
2. Network Databases
In Layman’s terms, a network database is a hierarchical database, but with a major tweak. The
child records are given the freedom to associate with multiple parent records. As a result, a
network or net of database files linked with multiple threads is observed. Notice how the Student,
Faculty, and Resources elements each have two-parent records, which are Departments and
Clubs.
Entity Relationship Database Models
Entity Relationship Database Model is one of the types of Database models that is similar to the
network model, it captures relationships between real-world entities, but it isn’t as closely linked
to the Database’s physical structure. It’s more commonly used to conceptually design a Database.
The people, places, and things about which data points are stored are referred to as entities, and
each of them has specific attributes that make up their domain. The cardinality of entities, or the
relationships between them, is also mapped.
Certainly, a complex framework, network databases are more capable of representing two-
directional relationships. Also, conceptual simplicity favors the utilization of a simpler database
management language.
The disadvantage lies in the inability to alter the structure due to its complexity and also in it
being highly structurally dependent.
3. Relational Databases
A Relational Database management system refers to the various software systems used to
maintain Relational Databases (RDBMS). The data in this type of Database Model is organized in
two-dimensional tables with rows and columns, and the relationship is maintained by storing a
common field. There are three main parts to it.
Three key terms, relations, attributes, and domains, are frequently used in Relational Models. A
table with rows and columns is what a Relation is. In relational databases, Attributes are the
defining characteristics or properties that define all items belonging to a particular category and
are applied to all cells in a column. The Domain is nothing more than the set of values that the
attributes can take. The relational Database Model is depicted in the following diagram.
Parameters in Relational Model
Tuple: A tuple is a single row in a table.
Cardinality Of a Relation: The cardinality of a relationship is determined by the number of tuples
in it. The relation has a cardinality of 4 in this case.
Degree Of a Relation: Each tuple column is referred to as an attribute. The degree of a relationship
is determined by the number of attributes in it.
A Database Management System (DBMS) is a software system that is designed to manage and
organize data in a structured manner. It allows users to create, modify, and query a database, as
well as manage the security and access controls for that database.
The DBMS serves as the intermediary between the user and the database. The database structure
itself is stored as a collection of files, So, we can access the data in those files through the DBMS.
The DBMS receives all application requests and translates them into the complex operations
required to fulfill those requests. The DBMS hides much of the database’s internal complexity
from the application programs and users.
Advantages of DBMS:
Improved Data Sharing: DBMS enables data sharing among multiple users and applications.
Multiple users can access the same data simultaneously, without interfering with each other's
work. This improves collaboration and productivity, as well as reduces the risk of data
duplication.
Data Integration: DBMS allows the integration of data from multiple sources. This means that
data can be collected from various systems and combined into a single database, which makes it
easier to access and analyze.
Data Security: DBMS provides various security features such as access control, authentication,
and encryption to safeguard data from unauthorized access and prevent data loss or corruption.
Data Consistency: DBMS enforces consistency in data by ensuring that data is accurate,
complete, and up-to-date. This helps to avoid data inconsistencies and errors that can result in
significant consequences for an organization.
Data Integrity: DBMS ensures that data is stored and retrieved without any loss or corruption. It
provides mechanisms such as transaction management and recovery, which guarantees data
integrity even in case of system failures.
Disadvantages of DBMS:
High Cost: Implementing a DBMS can be expensive due to the cost of licensing, hardware, and
maintenance. This cost can be particularly significant for smaller organizations.
System Overhead: DBMS requires system resources such as memory, CPU, and disk space,
which can lead to system overhead and reduced system performance.
Data Dependency: DBMS stores data in a particular format, which can create data dependency
issues. If the format changes, it can affect the application that uses the data, leading to additional
maintenance and development costs.
Single Point of Failure: DBMS represents a single point of failure for an organization's data. If
the DBMS fails, it can lead to significant data loss and downtime, which can have a severe
impact on the business.
A file management system handles how to read and write data to the hard disk. When installing
the operating system, the file system also installs to the computer. For examples, OS such as Linux
and Windows provide files systems. It stores data to the hard disk and storing and retrieving data
occurs through this file management system.
Data Redundancy
Data Sharing
Integrity
Operations
Security
Number of Users
In the process of data mining, data is carefully extracted and analysed to fetch nothing other than
useful information. Here, all the hidden patterns are researched from the dataset, thereby
predicting future behaviour. Besides, it can seamlessly indicate and discover unique relationships
through the data.
On the other hand, data mining makes the best use of artificial intelligence, statistics, machine
learning systems, databases, etc. It is used for figuring out the hidden patterns within the data.
Additionally, it also supports all business-related queries that take loads of time to resolve.
Features of Data Mining
A data warehouse is nothing but an electronic storage that stores gigantic amounts of business
information. It is exquisitely designed for both query and analysis rather than processing
transactions.
Data warehousing is a unique technique that helps collect and manage data from various sources.
Furthermore, these data provide meaningful and valuable business insights. It is basically a blend
of components and technologies that enables strategic usage of data.
In a nutshell, data warehousing is a process of transforming data into information, thereby
making it widely available for analysis. Now, let us discuss the important differences between
data mining and data warehousing in detail.
1. Unified
Numerous heterogeneous sources are compiled together to formulate a data warehouse
like social databases, level documents, etc.
2. Subject Oriented
It offers the most important data regarding particular subjects like products, suppliers,
customers, promotions, etc. It handles data analysis and modelling while assisting
organisations in making data-driven decisions
3. Nonvolatile
The previous data remains intact whenever new data is added to the data warehouse.
Since the operational database and data warehouse are kept separately, changes within
the operational database aren’t shown.
4. Time-Variant
Data collected within the data warehouse is seamlessly identified within a particular
period.
Application of DBMS
There are different fields where a database management system is utilized. Following are a few
applications which utilize the information base administration framework –
3. Banking –
Database the executive’s framework is utilized to store the exchange data of the
client in the information base.
4. Education Sector –
Presently, assessments are led online by numerous schools and colleges. They deal
with all assessment information through the data set administration framework
(DBMS). In spite of that understudy’s enlistments subtleties, grades, courses,
expense, participation, results, and so forth all the data is put away in the
information base.
7. Broadcast communications –
Without DBMS any media transmission organization can’t think. The Database the
executive’s framework is fundamental for these organizations to store the call
subtleties and month to month postpaid bills in the information base.
8. Account –
The information base administration framework is utilized for putting away data
about deals, holding and acquisition of monetary instruments, for example, stocks
and bonds in a data set.
9. Online Shopping –
These days, web-based shopping has become a major pattern. Nobody needs to visit
the shop and burn through their time. Everybody needs to shop through web based
shopping sites, (for example, Amazon, Flipkart, Snapdeal) from home. So all the
items are sold and added uniquely with the assistance of the information base
administration framework (DBMS). Receipt charges, installments, buy data these
are finished with the assistance of DBMS.
11. Manufacturing –
Manufacturing organizations make various kinds of items and deal them
consistently. To keep the data about their items like bills, acquisition of the item,
amount, inventory network the executives, information base administration
framework (DBMS) is utilized.
Microsoft Access enables business and enterprise users to manage data and analyze vast amounts
of information efficiently. The program provides a blend of database functionality
and programming capabilities for creating easy-to-navigate forms.
Microsoft Access is like Microsoft Excel in that you can store, edit, and view data. However,
Access has much more to offer, as we are about to see.
MS Access Features
User-Friendly Interface: MS Access provides a user-friendly interface that allows you to create
and manage databases using a drag-and-drop interface. This makes it easy to create tables, forms,
queries, and reports without requiring extensive technical knowledge.
Customizable Templates: MS Access includes a range of customizable templates that you can
use as a starting point for your database. This includes templates for inventory management,
customer management, project tracking, and more.
Powerful Query Designer: MS Access includes a powerful query designer that allows you to
extract specific data from tables based on user-defined criteria. This includes the ability to sort,
filter, and aggregate data from multiple tables.
Integrated Reporting Tools: MS Access includes integrated reporting tools that allow you to
create professional-looking reports based on data from one or more tables. This includes the
ability to create charts, graphs, and summaries.
Customizable Forms: MS Access allows you to create custom forms that provide a user-
friendly interface for entering and viewing data in your tables. This includes the ability to add
controls, such as text boxes, drop-down lists, and buttons.
Macros For Automation: MS Access includes macros that allow you to automate common tasks
in your database, such as opening forms and running queries. This can save time and increase
efficiency.
Customizable Code: MS Access allows you to write custom code using the Visual Basic for
Applications (VBA) programming language. This allows you to create custom functions and
automate complex tasks.
Collaboration Features: MS Access allows you to share your database with other users and
control their access to the data. This includes the ability to assign specific permissions to
individual users or groups.
Integration With Other Applications: MS Access integrates with other applications in the
Microsoft Office suite, such as Excel and Word. This allows you to import and export data, as
well as generate reports and charts using data from multiple sources.
MS Access - Create Database
In this chapter, we will be covering the basic process of starting Access and creating a database.
This chapter will also explain how to create a desktop database by using a template and how to
build a database from scratch.
To create a database from a template, we first need to open MS Access and you will see the
following screen in which different Access database templates are displayed.
To view the all the possible databases, you can scroll down or you can also use the search box.
Let us enter project in the search box and press Enter. You will see the database templates related
to project management.
Select the first template. You will see more information related to this template.
After selecting a template related to your requirements, enter a name in the File name field and
you can also specify another location for your file if you want.
Now, press the Create option. Access will download that database template and open a new
blank database as shown in the following screenshot.
Now, click the Navigation pane on the left side and you will see all the other objects that come
with this database.
Click the Projects Navigation and select the Object Type in the menu.
You will now see all the objects types — tables, queries, etc.
Create Blank Database
Sometimes database requirements can be so specific that using and modifying the existing
templates requires more work than just creating a database from scratch. In such case, we make
use of blank database.
Step 3 − Access will create a new blank database and will open up the table which is also
completely blank.
Creating Microsoft Access Tables
Tables are the foundation of an Access database. Access stores data in tables. This lesson teaches
you how to create a table, add fields to a table, assign data types to fields, and set field
properties.
Understanding Tables
A table is a set of columns and rows. Each column is called a field. Within a table, each field
must be given a name and no two fields can have the same name. Each value in a field represents
a single category of data. For example, a table might have three fields: Last Name, First Name,
and Phone Number. The table consists of three columns: one for last name, one for first name,
and one for phone number. In every row of the table, the Last Name field contains the last name,
the First Name field contains the first name, and the Phone Number field contains the phone
number. Each row in a table is called a record.
All of the data in a table should refer to the same subject. For example, all of the data in the
Employees table should refer to employees, all of the data in the students table should refer to
students, and all of the data in the Courses table should refer to courses.
You can view an Access database as a collection of related tables. For example, in a database that
contains tables for Employees, Students, and Courses, the Employees table lists the employees,
the Students table lists students, and the Courses table lists the courses students can take.
After Access creates a blank database, it opens in Datasheet view and makes available the tools
you need to create a table. Datasheet view displays a table as a set of columns and rows. When
you view a blank database for the first time in Datasheet view, you see a column named ID. This
column is by default the primary key field.
A primary key is a field or combination of fields that uniquely identify each record in a table. No
two records in a table should have the same values in every field. For example, the following
should not occur in a table.
In the real world, it is possible to have two people from the same city with the same first and last
name. In cases like this, you can use the ID field as the primary key field and use it to make each
record unique. The ID field has a data type of AutoNumber; as a result, Access automatically
creates a unique number for each record in the database. The resulting table will look like the one
shown here.
Access provides several methods for creating a table. One method is to use the Rename option
with the Add New Field column label to give each column the field name you want it to have and
then to type or paste your data into the table. Field names can include letters, numbers, and spaces
and can be up to 64 characters long. When choosing a field name, try to keep it short.
When you save your table for the first time, Access gives you the opportunity to name your table.
Each table name must be unique; hence, two tables in the same database cannot have the same
name. The table name should describe the data in the table; can consist of letters, numbers, and
spaces; and can be up to 64 characters long. When choosing a table name, try to keep it short.
You can save a table by clicking the Save button on the Quick Access toolbar or by right-clicking
the Tables tab and then choosing Save from the menu that appears.
1. Click the Save button on the Quick Access toolbar. The Save As dialog box appears.
2. Type the name you want to give your table.
3. Click OK. Access names your table.
Tip: You can use the Rename option at any time to rename any column. For example,
you can rename the ID column Employee ID.
Let us add some data into your tables by opening the Access database we have
created.
Select the Views → Datasheet View option in the ribbon and add some data as shown
in the following screenshot.
Similarly, add some data in the second table as well as shown in the following
screenshot.
You can now see that inserting a new data and updating the existing data is very
simple in Datasheet View as working in spreadsheet. But if you want to delete any
data you need to select the entire row first as shown in the following screenshot.
Now press the delete button. This will display the confirmation message.
Click Yes and you will see that the selected record is deleted now.
FormS in Access
Forms in Access are like display cases in stores that make it easier to view or get the items that you want.
Since forms are objects through which you or other users can add, edit, or display the data stored in your
Access desktop database, the design of your form is an important aspect. If your Access desktop database
is going to be used by multiple users, well-designed forms is essential for efficiency and data entry
accuracy.
Create a Report
How to Create a Report in Access
You can create a report either by using the Report Wizard, if you want to use more than
one table, or the Report button, if you already have a table or query open.
1. Select the table or query you want to base the report on.
A report is instantly created based on the active table or query, and appears
in Layout View.
There are several ways to create reports in Access, they're listed in this table.
Creates a basic report of the data in the current table or query. You
Report
can then add features, such as groups and totals.
Report Creates a new blank report in Design view, where you can make
Design more advanced changes to the report.
Report Shows the Report Wizard that helps you create simple, customizable
Wizard reports.