You are on page 1of 21

database DBMS RdBMS OODBMS SQL

Name :Hira Waheed ID:3873

Department of Computer Science


City University of Science & Information Technology.
1 CUSIT,Peshawar

What is database?

A database is a collection of information that is organized It can easily be


accessed managed updated

In computing, databases are sometimes classified according to their organizational approach.. General Objectives

The elimination of data redundancy is only one of many reasons for establishing a database.

CUSIT,Peshawar

What is database?

A database can be thought of as a set of related files organized.

logically

To facilitate access by one or more applications programs. To minimize data redundancy.

Databases are designed to offer an organized mechanism for:

for storing, for managing for retrieving information.


CUSIT,Peshawar

They do so through the use of tables.

What is database?
Others include: Integrate existing data files Share data among all users Incorporate changes easily and quickly Simplify the use of data files Lower the cost of storing and retrieving data Improve accuracy and consistency Provide data security from unauthorized use Exercise central control over standards

CUSIT,Peshawar

What is DBMS?

A collection of programs that enables you to store, modify, and extract information from a database. There are many different types of DBMSs, ranging:

from small systems that run on personal computers to huge systems that run on mainframes.

CUSIT,Peshawar

What is RDBMS?

The most prevalent approach is the relational database, A tabular database in which data is defined so that it can be reorganized and accessed in a number of different ways. A distributed database is one that can be dispersed or replicated among different points in a network

CUSIT,Peshawar

RDBMS

The software used in relational database is called a relational database management system(RDBMS). The term "relational database" often refers to RDBMS software, not the database itself. Relational databases are currently the predominant choice in storing data like financial records, medical records, personal information and manufacturing and logistical data. (RDBMS)

is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd.
CUSIT,Peshawar

RDBMS

A short definition of an RDBMS is:

DBMS in which data is stored in tables and the relationships among the data are also stored in tables. The data can be accessed or reassembled in many different ways without having to change the table forms.

CUSIT,Peshawar

RDBMS

A relation is defined as a set of tuples that have the same attributes. A tuple usually represents an object and information about that object. Objects are typically physical objects or concepts. A relation is usually described as a table, which is organized into rows and columns.

CUSIT,Peshawar

What is OODBMS?

An object-oriented programming database is one that is congruent with the data defined in object classes and subclasses

10

CUSIT,Peshawar

OODBMS

A database system that incorporates all the important object-oriented concepts Some additional features

Unique Object identifiers Persistent object handling

11

CUSIT,Peshawar

Advantages Of OODBMS

Designer can specify the structure of objects and their behavior (methods) Better interaction with object-oriented languages such as Java and C++ Definition of complex and user-defined types Encapsulation of operations and user-defined methods

12

CUSIT,Peshawar

SQL

The standard user and application program interface to a relational database is the structured query language (SQL). SQL statements are used both for interactive queries for information from a relational database and for gathering data for reports.

13

CUSIT,Peshawar

SQL

Although most database systems use SQL, most of them also have their own additional proprietary extensions that are usually only used on their system. The standard SQL commands

such as "Select", "Insert", "Update", "Delete", "Create", and "Drop" can be used to accomplish almost everything that one needs to do with a database.

14

CUSIT,Peshawar

SQL

The spread of dynamic websites on the World Wide Web today is largely due to the possibility for their content to be handled through databases. Database management is a complicated process, which has been considerably rationalized by the SQL programming language. As its full name (Structured Query Language) implies, SQL is responsible for querying and editing information stored in a certain database management system.

15

CUSIT,Peshawar

DML

A data manipulation language (DML) is a family of syntax elements similar to a computer programming language used for inserting, deleting and updating data in a database. Performing read-only queries of data is sometimes also considered a component of DML. Data manipulation languages have their functional capability organized by the initial word in a statement, which is almost always a verb. In the case of SQL, these verbs are:


16

SELECT ... FROM ... WHERE ... INSERT INTO ... VALUES ... UPDATE ... SET ... WHERE ... DELETE FROM ... WHERE ...
CUSIT,Peshawar

Select

The SQL SELECT statement returns a result set of records from one or more tables. Example:

17

CUSIT,Peshawar

Insert

An SQL INSERT statement adds one or more records to any single table in a relational database. Example:

18

CUSIT,Peshawar

Delete

In the database structured query language (SQL), the DELETE statement removes one or more records from a table. A subset may be defined for deletion using a condition, otherwise all records are removed. Example:

19

CUSIT,Peshawar

Update

An SQL UPDATE statement changes the data of one or more records in a table. Either all the rows can be updated, or a subset may be chosen using a condition. Example:

20

CUSIT,Peshawar

THANKS
21 CUSIT,Peshawar

You might also like