Professional Documents
Culture Documents
[٢ ]ﻧظري
Eng:Mohamed eldawansy
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
DATABASE PART 3 ENG: OMAR AWAIDA
Important Definitions
Entity-Relationship Diagram (ERD) identifies information required by the
business by displaying the relevant entities
and the relationships between them.
Domain – Value set specifies the set of values that can be assigned to
the attribute.
Key attribute - uniqueness constraint An attribute of an entity type for which each entity
attributes must have a unique value is called a key attribute of
the entity type.
Candidate Key -is a set of attributes that uniquely identify
tuples in a table.
91
an entity depends on its being
related to another entity via the
relationship type.
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
Mcq
10
2
DATABASE SECTION
DATABASE PART 13 ENG:MOHAMED ELDAWANSY
ENG: OMAR AWAIDA
13) ________ specifies the set of values that can be assigned to the
attribute.
a) block b) relation c) structure d) domain
14) Multivalued attributes are shown by _______.
a) ( ) b) { } c) < >
15) The relationships are displayed as _______ in ER-diagrams.
a) rectangles b) ovals c) triangles d) diamonds
16) The relationship in which an entity type participates more than once is a
_____ relationship.
a) recursive b) iterative c) enumerated d) implied
17) _______ specifies the maximum number of relationship instances that
an entity can participate.
a) range b) domain c) cardinality d) ceiling
18) In ER diagrams, the total participation is displayed as a _______.
a) oval b) single line c) double line d) arrow
True or False
1. The ER model is high-level conceptual model.
2. The class diagrams in UML specify the operations on objects also.
3. In database design the conceptual design phase comes after logical design phase. 4. Composite attributes
cannot be further subdivided.
5. A multivalued attribute can have lower and upper bounds.
6. An attribute value can be derived from another attribute.
7. The names on entity types and entity sets are different.
8. An entity cannot have more than one key attribute.
9. A relationship type of degree two is called as ternary relationship.
10. Relationship types can also have attributes.
11. The attribute of a relationship type can be added to participating entity types.
12. A weak entity type can have more than one identifying entity type.
113
DATABASE PART 3 ENG: OMAR AWAIDA
Important Figure
1) designing of a new database
4
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
12
5
DATABASE
DATABASESECTION
PART13 ENG:MOHAMED
ENG: OMARELDAWANSY
AWAIDA
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for COMPANY database:
DBMS Functionalities :
7
File Based System
Ø Collection of application programs that perform services for
theSECTION
DATABASE end users
1 (e.g. reports). ENG:MOHAMED ELDAWANSY
Ø Each program defines and manages its own data.
Limitations
Limitations of File-Based of File-Based Approach
Approach
Limited Data Sharing
Ø No centralized control of data.
Data Redundancy (Duplication of data)
Ø Different systems/programs have separate copies of the same
data
Ø When data changes in one file, could cause inconsistencies
Program Data Dependence
Ø All program maintain meta data for each file they use.
Separation & Isolation Of data
Ø each user has a copy.
Incompatible file formats
DATABASE PART 3 ENG: OMAR AWAIDA
16
Ø Programs are written in different languages, and so cannot
easily access each other’s files.
Lengthy Development Times
Excessive Program Maintenance
10
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
11
DATABASE
DATABASE SECTION
PART13 ENG:MOHAMED
ENG: OMARELDAWANSY
AWAIDA
Transaction
Ø is an executing program or process that includes one or more
database accesses, such as reading or updating of database
records.
Ø each transaction is supposed to execute a logically correct
database access if executed in its entirety without interference
from other transactions.
Ø Properties of Transactions (ACID)
o Atomicity
o Consistency
o Isolation
o Durability
End users
Ø are the people whose jobs require access to the database for
querying, updating, and generating reports.
Ø Database End users are categorized as
o Casual end users
- they may need different information each time.
o Naive or parametric end users
- Their main job function revolves around constantly
querying and updating the database, using standard
types of queries and updates called canned
transactions, that have been carefully programmed and
tested.
§ examples are: Bank tellers , customers, , and
Reservation agents or customers for airlines.
o Sophisticated end users
- include engineers, scientists, business analysts, and
others who thoroughly familiarize themselves with the
facilities of the DBMS in order to implement their
own applications to meet their complex requirements.
o Standalone users
- maintain personal databases by using ready-made
program packages that provide easy-to-use menu-
based or graphics-based interfaces.
System Analysts and Application Programmers (Software
Engineers)
Ø System Analysts and Application Programmers commonly
referred to as
o software developers or software engineers.
Ø System analysts
13
20
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
DATABASE PART 3 ENG: OMAR AWAIDA
Ø Application programmers
o implement these specifications as programs; then they test,
debug, document, and maintain these canned transactions.
The End
14
21
DATABASE SECTION 1 ENG:MOHAMED ELDAWANSY
Review Questions
MCQs
15