UNIT 5 - EVI - Database Handling Techniques
UNIT 5 - EVI - Database Handling Techniques
Techniques
EVI – UNIT 5
Contents
• Database Handling Techniques: DAO – RDO and ADO introduction – Data Controls –
Database Operations: Adding – Deleting –Modifying – Retrieving Records
Understanding Database
• In the past, people usually deal with data manually like
using cards and folders. However, in the present-day
digital age, it is no longer feasible to manage data
manually.
• Most data are now managed using computer-based
database management systems. Computer-based
Database management systems can handle data much
faster and more efficient than human beings do.
• With the advent of the network and Internet
technologies, data can now be managed locally and
remotely. Companies usually invest heavily in database
management systems to run the organizations efficiently
and effectively.
Standard
records
Definition of Database
A database is a structured collection of data organized in such a
way that it can be easily accessed, managed, and updated. It's like
a digital filing system where information is stored in tables, each
containing rows and columns.
Table
Accessibility
GIVEN DATA
Example
SQL Query
SELECT first_name, age
FROM Customers;
Database Handling
Database handling refers to the process of managing and manipulating data within
a database system. It involves various tasks such as creating, updating, retrieving,
and deleting data, as well as managing database structures and configurations.
Some key aspects of database handling:
• Data Manipulation
• Data Definition
• Data Querying
• Transaction Management
• Concurrency Control
• Security and Access Control
• Backup and Recovery
CRUD operations
• CRUD is the acronym for CREATE, READ, UPDATE and DELETE. These
terms describe the four essential operations for creating and managing
persistent data elements, mainly in relational and NoSQL databases.
• CRUD operations are used in persistent storage applications, meaning
these applications will keep their data even after the system powers
down. These are different from operations on data stored in volatile
storage, like Random Access Memory or cache files.
• CRUD is extensively used in database applications. This includes
Relational Database Management Systems (RDBMS) like Oracle, MySQL,
and PostgreSQL. It also includes NoSQL databases like MongoDB, Apache
Cassandra, and AWS DynamoDB.
CREATE
INSERT INTO <table name> VALUES (field value 1, field value, 2…)
READ
• READ returns records (or documents or items) from a database table
(or collection or bucket) based on some search criteria. The READ
operation can return all records and some or all fields.
• ADO is a more versatile and widely used database access technology introduced
by Microsoft as part of the ActiveX suite.
• It provides a set of COM objects and methods for accessing and manipulating
data from various data sources, including databases, text files, spreadsheets, etc.
• ADO is designed to be database agnostic, meaning it can work with a wide range
of database systems, including SQL Server, Oracle, MySQL, and others.
• ADO offers features such as disconnected record sets, batch updating, support for
multiple data providers and better integration with other Microsoft technologies.
• ADO has become the preferred choice for database access in Visual Basic and
other Microsoft development environments.
ADO Object Model
• The data residing in a data store or
database is retrieved through
the data provider. Various
components of the data provider
retrieve data for the application and
update data.
1. Write a query to update the name “ xyz ” of the record with Id 4 To be solved by students
2. Write an sql query to display the average sat_score
3. Write an sql query to add one more record in the above database
Thank You