Database Managements
Database Managements
Architecture
It is highest level of data abstraction includes only those portion of database of concern to a
om
user.
.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
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.
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
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
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
A
ek
Ans: A
l
on
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