0% found this document useful (0 votes)
26 views3 pages

Database Managements

Uploaded by

kushalpc126
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Database Managements

Uploaded by

kushalpc126
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

click here https://goo.

gl/LEprVp (Hard copy) click here


to join to join
group group
DATABASE MANAGEMENT
Database is collection of interrelated data and set of program to access this data in a
convenient and efficient way.
A ​DBMS​ stores data in such a way that it becomes easier to retrieve, manipulate, and give
information.

Architecture

DBMS is divided into three levels:

External view or user view or view level

It is highest level of data abstraction includes only those portion of database of concern to a

om
user.

Conceptual view/logical level

.c
Includes all the entities and relationship among them. It describes the schemas of
database. DBA work at this level.
Internal view or physical level
k et
ar
This is the lowest level of DBMS. it describes how to store data data and access these data.
m

Keys
n
ha

Key is defined a the combination of attributes that is used to identify record of the
ek

database table. It is also used to arrange the records.


in

● Superkey − A set of attributes that collectively identifies an entity in an entity


l
on

set.
● Candidate Key − Minimal superkey is called a candidate key. An entity set may
have more than one candidate key.
● Primary Key − uniquely identify the entity set called primary key.
● Foreign key- whose value is derived from the primary key of another table.
Relationship held between two tables with the help of foreign key.
What is SQL
Structured query language
SQL is the language used to query all databases. It is simple learn and appears to do
very little but is the heart of a successful database application.

DML : DATA MANIPULATION LANGUAGE

SELECT :- RETRIEVE SOME RECORDS FROM TABLE


INSERT :- CREATE A RECORD
UPDATE : CHANGE OR MODIFY A
RECORD
DELETE :DELETE RECORDS
https://goo.gl/wcgc3d (Best coaching) C- (1)onlinekhanmarket.com https://goo.gl/MqAwy3 (Best coaching)
https://goo.gl/LEprVp (Hard copy)

DATA CONTROL LANGUAGE


GRANT : GIVE PRIVILEGES TO USER
REVOKE : TAKE BACK PRIVILEGES GRANTED FROM
USER
DATA DEFINITION LANGUAGE

CREATE: CREATE A TABLE, VIEW A TABLE,


ALTER :- MODIFY EXISTING
TABLE DROP: DELETE AN
ENTIRE TABLE
TRANSACTION CONTROL LANGUAGE

om
COMMIT: PERMANENTLY SAVE ANY TRANSACTION INTO
DATABASE ROLLBACK : RESTORE THE DATABASE TO LAST
COMMITTED STATE SAVEPOINT: TEMPORARILY SAVE A

.c
TRANSACTION.
ELEMENTS OF DATABASE k et
ar
● Entity − An entity is a real-world entity having properties called attributes. Each
attribute is defined by its set of values called domain. For example, in a college
m

database, a student is considered as an entity. Student has various attributes


n

such as name, age, class, etc.


ha

● Relationship− The logical group among entities is called relationship.


Relationships are mapped with entities in various ways. Mapping cardinalities
ek

define the number of connection between two entities.


l in
on

https://goo.gl/wcgc3d (Best coaching) C- (2)onlinekhanmarket.com https://goo.gl/MqAwy3 (Best coaching)


https://goo.gl/LEprVp (Hard copy)

​ atabase
D
1.In the relational modes, cardinality is termed as:
(A) Number of tuples. (B) Number of attributes. (C) Number of tables. (D)
Number of constraints.
Ans: A

2.The view of total database content is


(A) Conceptual view. (B) Internal view. (C) External view. (D) Physical View. ​
Ans: A

3. Architecture of the database can be viewed as


(A) two levels. (B) four levels. (C) three levels. (D) one level.
Ans: C

om
4. In a Hierarchical model records are
organized as

.c
(A) Graph. (B) List. (C) Links. (D) Tree.
Ans: D
5. In an E-R diagram an entity set is represented
by a (A) rectangle. (B) ellipse. (C) diamond box.
k et
ar
(D) circle. Ans: A
m

6.The statement in SQL which allows to change the definition of a table is


n

(A) Alter. (B) Update. (C) Create. (D) select. Ans:


ha

A
ek

7. Which database level is closest to the users?


(A) External (B) Internal (C) Physical (D) Conceptual
in

Ans: A
l
on

8.In E-R Diagram derived attribute are represented by


(A) Ellipse (B) Dashed ellipse (C) Rectangle (D) Triangle
Ans B

9. In E-R Diagram relationship type is represented by


(A) Ellipse (B) Dashed ellipse (C) Rectangle (D) Diamond
Ans: D

10. An entity set that does not have sufficient attributes to form a primary key is a
(A) strong entity set. (B) weak entity set. (C) simple entity set. (D) primary entity set.
​Ans: B

https://goo.gl/wcgc3d (Best coaching) C- (3)onlinekhanmarket.com https://goo.gl/MqAwy3 (Best coaching)

You might also like