Database Managment Notes
Database Managment Notes
1. What is a Database?
2. What is DBMS?
The term “DBMS” includes the user of the database and other application
programs. It provides an interface between the data and the software
application.
1
Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding
documents in a format that is both human-readable and machine-readable.
Data encapsulation also known as data hiding, is the mechanism whereby the implementation
details of a class are kept hidden from the user. The user can only perform a restricted set of
operations on the hidden members of the class by executing special functions commonly called
methods.
Inheritance is a mechanism in which one class acquires the property of another class. For
example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields
and methods of the existing class. Hence, inheritance facilitates Reusability and is an important
concept of OOPs.
Polymorphism is the ability of an object to take on many forms. It is the ability of a message to
be displayed in more than one form. E.g., a person at the same time can have different
characteristic. Like a man at the same time is a father, a husband, an employee.
MySQL
Microsoft Access
Oracle
PostgreSQL
FoxPro
SQLite
LibreOffice Base
Microsoft SQL Server etc.
8. Application of DBMS
9. Types of DBMS
Types of DBMS
Hierarchical DBMS
Network Model
The network database model allows each child to have multiple parents. It helps you to
address the need to model more complex relationships like as the orders/parts many-
to-many relationship. In this model, entities are organized in a graph which can be
accessed through several paths.
Relational model
Relational DBMS is the most widely used DBMS model because it is one of the
easiest. This model is based on normalizing data in the rows and columns of the
tables. Relational model stored in fixed structures and manipulated using SQL.
Object-Oriented Model
In Object-oriented Model data stored in the form of objects. The structure which is
called classes which display data within it. It defines a database as a collection of objects
which stores both data members values and operations.
Limitations of DBMS
Cost of Hardware and Software of a DBMS is quite high which increases the
budget of your organization.
Most database management systems are often complex systems, so the
training for users to use the DBMS is required.
In some organizations, all data is integrated into a single database which can
be damaged because of electric failure or database is corrupted on the
storage media
Use of the same program at a time by many users sometimes lead to the loss
of some data.
DBMS can't perform sophisticated calculations
DBMS is not suited and recommended when you do not have the budget
or the expertise to operate a DBMS. In such cases, Excel/CSV/Flat Files
could do just fine.
The world of data is constantly changing and evolving every second. This in turn has
created a completely new dimension of growth and challenges for companies around
the globe. By accurately recording data, updating and tracking them on an efficient and
regular basis, companies can address their challenges on one hand and make use of the
immense potential offered by this sector on the other hand.
By collecting minute and updated data, companies are using the said information to
achieve their goals in a systematic way on one hand and empower their business in a
strategic manner on the other hand. Some of the activities conducted after collection
of data includes creating accounting reports, calculating sales estimates and
creating invoices of customers. Important applications of DBMS in Business:
Data management system is needed for data access within the company.
It is needed to maintain strong relationships between data. For e.g. Product sales
of one table with sales of an employee of another table
It helps brand managers to search data in a better manner
It allows newer and better updates
Important Terms
Database File: It is a file which stores the entire database. The database file is saved to
your hard drive or other storage devices.
Data types: Data types are the properties of each field. Every field has one datatype like
text, number, date, etc.
Table: A Table is an object which stores data in Row & Column format to store data.
Queries answer a question by selecting and sorting and filtering data based on
search criteria.
Queries show a selection of data based on criteria (limitations) you provide.
Queries can pull from one or more related Tables and other Queries.
Types of Query can be SELECT, INSERT, UPDATE, DELETE.
Form
A form is a database object that you can use to create a user interface for a
database application.
Forms help you to display live data from the table. It mainly used to ease the
process of data entry or editing.
Report
Advantages of MS ACCESS
Access offers a fully functional, relational database management system in
minutes.
Easy to import data from multiple sources into Access
You can easily customize Access according to personal and company needs
Access works well with many of the development languages that work on
Windows OS
It is robust and flexible, and it can perform any challenging office or industrial
database tasks.
MS-Access allows you to link to data in its existing location and use it for viewing,
updating, querying, and reporting.
Allows you to create tables, queries, forms, and reports, and connect with the
help of Macros
Macros in Access is a simple programming construct with which you can use to
add functionality to your database.
It can perform heterogeneous joins between various data sets stored across
different platforms
Limitations of MS-ACCESS
Microsoft Access is useful for small-to-medium business sectors. However, it is
not useful for large-sized organizations
Lacks robustness compared to DBMS systems like MS SQL Server or Oracle
All the information from your database is saved into one file. This can slow down
reports, queries, and forms
Technical limit is 255 concurrent users. However, the real-world limit is only 10
to 80 (depending on the type of application which you are using)
It requires a lot more learning and training compares with other Microsoft
programs
Start using Microsoft Access: There are two ways to Start MS Access.
Q1. Which field type will you select if you need to enter long text in that field?
A. Text B. Memo C. Currency D. Hyperlink
Q5. The columns in a Microsoft access table are also called _______
A. Rows B. Records C. Fields D. Columns
Your Score:____________/10
Input
A. Employee details
Employee_Id (Primary key)
Name
Phone
Designation (Lower/Middle/Senior)
City (Delhi/Mumbai/Chennai/Kolkata)
B. Product details
Product_Id (Primary key)
Product_name
Purchase_price
Sales_price
Qty_available
Perishable (Yes/No)
Date_of_expiry
B. Customer Details
Customer_Id (Primary key)
Cust_name
Phone
C. Sale details
Sales_Id (Primary key)
Date_of_sale
Product_Id
Qty_sold
Emp_id
Customer_id
B. Generate Product wise Sales Report (City, Product name, Qty Sold, Net Qty)