prelim lesson2 Flashcards

(41 cards)

1
Q

DBMS is the only entity where user directly sits
on DBMS and uses it. Any changes done here
will directly be done on DBMS itself. It does
not provide handy tools for end users and
preferably database designer and
programmers use single tier architecture.

A

1tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • DBMS is 2-tier then must have some application,
    which uses the DBMS

. Programmers use ____ architecture where they access DBMS by means of
application. Here application tier is entirely
independent of database in term of operation, design
and programming.

A

2tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Most widely used architecture

A

3tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

tells how the logical structure of a database is modeled.
Data Models are fundamental entities to introduce abstraction in
DBMS. Data models define how data is connected to each other and
how it will be processed and stored inside the system.

A

Data model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • precise description of the data
    content in a system.
  • Underlying structure of a
    database.
  • Conceptual tool.
  • Data + Relationship +
    Semantics + Constraints
  • Design the database at physical,
    logical and view level
  • The data modelling or data structuring
    represents the nature of data, and the business
    logic to control the data. It is also organize the
    database.
  • The structure of data are explicitly determines
    by the data model.
  • Data model helps to communicate between
    business people, who requires the computer
    system, and the technical people who can fulfill
    their requirements.
A

Data modeling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why do we create data models

A
  • To aid in the development of a sound
    database design that does not allow
    anomalies or inconsistencies
  • Goal: to create database tables that do not
    contain duplicate data values that can
    become inconsistent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

a class of real world objects having
common attributes (e.g., sites, variables,
methods).

A

Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A characteristic or property of an
entity (site name, latitude, longitude)

A

Attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

an association between two or
more entities

A

relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

the number of entities on either
end of a relationship (one-to-one, one-to many, many-to-many, etc.)

A

Cardinality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

An entity in ER model is real world entity, which
has some properties called attributes. Every attribute is
defined by its set of values called domain.

A

Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The logical association among entities is
called relationship. Relationships are mapped with
entities in various ways. Mapping cardinalities define
the number of association between two entities.

A

Relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Relationship types

A
  • One to one
  • One to Many
  • Many to one
  • Many to Many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

are represented by means of
rectangles. Rectangles are named with the
entity set they represent.

A

Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

______ are the properties of entities.
_____ are represented by means of ellipses.
Every ellipse represents one attribute and is
directly connected to its entity (rectangle).

A

Attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

If the attributes are _____, they are further
divided in a tree like structure. Every node is then
connected to its attribute. That is, composite
attributes are represented by ellipses that are
connected with an ellipse.

A

Composite Attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

attributes are depicted by dashed
ellipse

18
Q

attributes are depicted by double
ellipse.

19
Q

T-A

____ attributes are atomic values,
which cannot be divided further. For example, a
student’s phone number is an atomic value of 10 digits.

A

Simple attribute

20
Q

T-A
are made
of more than one simple attribute. For example, a
student’s complete name may have first_name and
last_name.

A

Composite Attribute

21
Q

T-A
are the
attributes that do not exist in the physical database, but
their values are derived from other attributes present in
the database. For example, average_salary in a
department should not be saved directly in the
database, instead it can be derived. For another
example, age can be derived from data_of_birth.

A

Derived attribute

22
Q

T-A
attributes contain
single value. For example − Social_Security_Number.

A

Single-value attribute

23
Q

T-A
may
contain more than one values. For example, a person
can have more than one phone number, email_address,
etc.

A

Multi-value attribute

24
Q

Entity set and keys

A set of attributes (one or
more) that collectively identifies an entity in
an entity set.

is a group of single or multiple
keys which identifies rows in a table. A Super
key may have additional attributes that are
not needed for unique identification.

25
Entity set and keys A minimal super key is called a candidate key. An entity set may have more than one candidate key. is a set of attributes that uniquely identify tuples in a table. Candidate Key is a super key with no repeated attributes. The Primary key should be selected from the candidate keys. Every table must have at least a single candidate key. A table can have multiple candidate keys but only a single primary key.
Candidate key
26
Entity-set and keys is one of the candidate keys chosen by the database designer to uniquely identify the entity set. is a column or group of columns in a table that uniquely identify every row in that table. The Primary Key can't be a duplicate meaning the same value can't appear more than once in the table. A table cannot have more than one primary key.
Primary
27
defines the number of entities in one entity set, which can be associated with the number of entities of other set via relationship set.
Cardinality
28
One entity from entity set A can be associated with at most one entity of entity set B and vice versa.
One-to-one
29
One entity from entity set A can be associated with more than one entities of entity set B however an entity from entity set B, can be associated with at most one entity
One-to-many
30
More than one entities from entity set A can be associated with at most one entity of entity set B, however an entity from entity set B can be associated with more than one entity from entity set A
Many-to-one
31
One entity from A can be associated with more than one entity from B and vice versa.
Many-to-many
32
has the power of expressing database entities in a conceptual hierarchical manner. As the hierarchy goes up, it generalizes the view of entities, and as we go deep in the hierarchy, it gives us the detail of every entity included
ER model
33
Two types of ER model
Generalization Specialization
34
the process of generalizing entities, where the generalized entities contain the properties of all the generalized entities, is called generalization. In generalization, a number of entities are brought together into one generalized entity based on their similar characteristics. For example, pigeon, house sparrow, crow and dove can all be generalized as Birds
Generalization
35
, a group of entities is divided into sub-groups based on their characteristics. Take a group ‘Person’ for example. A person has name, date of birth, gender, etc. These properties are common in all persons, human beings. But in a company, persons can be identified as employee, employer, customer, or vendor, based on what role they play in the company.
Specialization
36
Inheritance is an important feature of Generalization and Specialization. It allows lowerlevel entities to inherit the attributes of higher-level entities.
Inheritance
37
Every relation has some conditions that must hold for it to be a valid relation. These conditions are called R____ I_____ C_____
Constraints
38
Three main integrity constraints
Key constraints Domain constraints Referential integrity constraints
39
There must be at least one minimal subset of attributes in the relation, which can identify a tuple uniquely. This minimal subset of attributes is called key for that relation. If there are more than one such minimal subsets, these are called candidate keys. * Key constraints force that − * in a relation with a key attribute, no two tuples can have identical values for key attributes. * a key attribute can not have NULL values.
Key constraints
40
is a key used to link two tables together is a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table.
Foreign key
41