Topic 2 Flashcards

1
Q

collection of data which is related by some aspect

A

Database

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

stores data, in such a way which is
easier to retrieve, manipulate and helps to produce information

A

database management system

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

CHARACTERISTICS

A

Real-world entity
Relation-based tables
Isolation of data and application
Less redundancy
Consistency
Query Language
ACID Properties
Multiuser and Concurrent Access
Multiple views

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

: DBMS allows entities and relations among them to form as tables. This eases the concept of data saving. A user can understand the architecture of database just by
looking at table names etc.

A

Relation-based tables:

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

Modern DBMS are more realistic and uses real world entities to design its
architecture. It uses the behavior and attributes too.

A

Real-world entity

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

: A database system is entirely different than its data. Where
database is said to active entity, data is said to be passive one on which the database works and
organizes. DBMS also stores metadata which is data about data, to ease its own process.

A

Isolation of data and application

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

DBMS follows rules of normalization, which splits a relation when any of its
attributes is having redundancy in values. Following normalization, which itself is a
mathematically rich and scientific process, make the entire database to contain as less
redundancy as possible.

A

Less redundancy

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

DBMS always enjoy the state on consistency where the previous form of data storing
applications while file processing does not guarantee this. Consistency is a state where every
relation in database remains consistent. There exist methods and techniques, which can detect
attempt of leaving database in inconsistent state.

A

Consistency

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

DBMS is equipped with query language, which makes it more efficient to
retrieve and manipulate data. A user can apply as many and different filtering options, as he or
she wants. Traditionally it was not possible where file-processing system was used.

A

Query Language

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

DBMS follows the concepts for __ ___, which stands for ____. These concepts are applied on transactions, which
manipulate data in database. A____ maintains database in healthy state in multi- transactional environment and in case of failure.

A

ACID Properties

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

ACID STANDS FOR

A

Atomicity,
Consistency, Isolation and Durability

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

DBMS support multi-user environment and allows them to
access and manipulate data in parallel. Though there are restrictions on transactions when they
attempt to handle same data item, but users are always unaware of them.

A
  • Multiuser and Concurrent Access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

: DBMS offers multiples views for different users. Security: Features like multiple
views offers security at some extent where users are unable to access data of other users and
departments. DBMS offers methods to impose constraints while entering data into database and
retrieving data at later stage. DBMS offers many different levels of security features, which
enables multiple users to have different view with different features.

A

Multiple views

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

DBMS architecture can be seen as

A

single tier or multi tier
or n-tier architecture.

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

DBMS is the only entity where user directly sits
on DBMS and uses it.

A

1 Tier Architecture

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

DBMS is ____ then must have some application,
which uses the DBMS. Programmers use ___
where they access DBMS by means of
application.

A

2-tier Architecture

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

Most widely used architecture ___. it separates it tier
from each other on basis of users.

A

3-tier
architecture

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

tells how the logical structure of a database is modeled.

A

Data model

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

represents the nature of data, and the business
logic to control the data. It is also organize the
database

A

Data Modelling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
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
20
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
21
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
22
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
23
Q

is based on the notion of
real world entities and relationship among them

A

Entity-Relationship model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Every attribute is defined by its set of values called
domain.
25
The logical association among entities is called
Relationship
26
are represented by means of rectangles. Rectangles are named with the __ set they represent.
Entities
27
are the properties of entities. are represented by means of ellipses
Attributes
28
If the attributes are composite , they are further divided in a tree like structure. - ellipses that are connected with an ellipse
composite attributes
29
are depicted by dashed ellipse
Derived attributes
30
are depicted by double ellipse.
Multivalued attributes
31
Types of Attributes
Simple attribute Composite attribute Derived attribute Single-value attribute Multi-value attribute
32
Entity-Set and Keys
Super Key Candidate Key − Primary Key
33
are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database.
Derived attribute
34
are atomic values, which cannot be divided further. For example, a student's phone number is an atomic value of 10 digits
Simple attribute
35
are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
Composite attribute
36
contain single value. For example − Social_Security_Number.
* Single-value attribute
37
may contain more than one values. For example, a person can have more than one phone number, email_address, etc.
Multi-value attribute
38
A set of attributes (one or more) that collectively identifies an entity in an entity set.
Super Key
39
A minimal super key; is a set of attributes that uniquely identify tuples in a table
Candidate Key
40
is one of the candidate keys chosen by the database designer to uniquely identify the entity set.
Primary Key
41
is a group of single or multiple keys which identifies rows in a table. A ___ ____may have additional attributes that are not needed for unique identification.
Super Key
42
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
43
One entity from entity set A can be associated with at most one entity of entity set B and vice versa.
One-to-one
44
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
45
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
46
More than one entity from A can be associated with more than one entity from B and vice versa
Many-to-many −
47
Each entity is involved in the relationship. __ ___ is represented by double lines.
Total Participation
48
Not all entities are involved in the relationship. __ ___ is represented by single lines
Partial participation
49
has the power of expressing database entities in a conceptual hierarchical manner. .
ER Model
50
the process of generalizing entities, where the generalized entities contain the properties of all the generalized entities, is called
Generalization
51
a group of entities is divided into sub-groups based on their characteristics.
Specialization
52
is an important feature of Generalization and Specialization. It allows lowerlevel entities to inherit the attributes of higher-level entities.
Inheritance
53
Codd’s 12 Rule
Rule 1: Information Rule - Rule 2: Guaranteed Access Rule Rule 3: Systematic Treatment of NULL Values Rule 4: Active Online Catalog Rule 5: Comprehensive Data Sub-Language Rule Rule 6: View Updating Rule Rule 7: High-Level Insert, Update, and Delete Rule Rule 8: Physical Data Independence Rule 9: Logical Data Independence - Rule 10: Integrity Independence Rule 11: Distribution Independence Rule 12: Non-Subversion Rule
54
The data stored in a database, may it be user data or metadata, must be a value of some table cell. Everything in a database must be stored in a table format.
Rule 1: Information Rule
55
Every single data element (value) is guaranteed to be accessible logically with a combination of table-name, primary-key (row value), and attribute-name (column value). No other means, such as pointers, can be used to access data
Rule 2: Guaranteed Access Rule
56
The NULL values in a database must be given a systematic and uniform treatment. This is a very important rule because a NULL can be interpreted as one the following − data is missing, data is not known, or data is not applicable
Rule 3: Systematic Treatment of NULL Values
57
The structure description of the entire database must be stored in an online catalog, known as data dictionary, which can be accessed by authorized users. Users can use the same query language to access the catalog which they use to access the database itself.
Rule 4: Active Online Catalog
58
A database can only be accessed using a language having linear syntax that supports data definition, data manipulation, and transaction management operations. This language can be used directly or by means of some application. If the database allows access to data without any help of this language, then it is considered as a violation
Rule 5: Comprehensive Data Sub-Language Rule
59
All the views of a database, which can theoretically be updated, must also be updatable by the system
Rule 6: View Updating Rule
60
A database must support high-level insertion, updation, and deletion. This must not be limited to a single row, that is, it must also support union, intersection and minus operations to yield sets of data records.
Rule 7: High-Level Insert, Update, and Delete Rule
61
The data stored in a database must be independent of the applications that access the database. Any change in the physical structure of a database must not have any impact on how the data is being accessed by external applications.
Rule 8: Physical Data Independence
62
The logical data in a database must be independent of its user’s view (application). Any change in logical data must not affect the applications using it. For example, if two tables are merged or one is split into two different tables, there should be no impact or change on the user application. This is one of the most difficult rule to apply
Rule 9: Logical Data Independence -
63
If a system has an interface that provides access to low-level records, then the interface must not be able to subvert the system and bypass security and integrity constraints.
Rule 12: Non-Subversion Rule
64
Data is stored in tables called relations. * Relations can be normalized. * In normalized relations, values saved are atomic values. * Each row in relation contains unique value * Each column in relation contains values from a same domain.
Relational Model
65
The end-user must not be able to see that the data is distributed over various locations. Users should always get the impression that the data is located at one site only. This rule has been regarded as the foundation of distributed database systems
Rule 11: Distribution Independence
66
A database must be independent of the application that uses it. All its integrity constraints can be independently modified without the need of any change in the application. This rule makes a database independent of the front-end application and its interface
Rule 10: Integrity Independence
67
Relational Model Concepts
Tables Tuple Relational Instance Relation schema Relation Key Attribute domain
68
− In relational data model, relations are saved in the format of Tables. This format stores the relation among entities. A table has rows and columns, where rows represents records and columns represent the attributes
Tables
69
A single row of a table, which contains a single record for that relation is called a
Tuple
70
describes the relation name (table name), attributes, and their names
Relation schema
71
− A finite set of tuples in the relational database system represents
Relation instance
72
Every attribute has some pre-defined value scope, known as
Attribute domain
73
Each row has one or more attributes, known as _____, which can identify the row in the relation (table) uniquely.
relation key
74
Every relation has some conditions that must hold for it to be a valid relation. These conditions are called
Relational Integrity Constraints
75
There are three main integrity constraints
* Key constraints * Domain constraints * Referential integrity constraints
76
* 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
77
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 ___ for that relation. If there are more than one such minimal subsets, these are called ___ ___.
key, candidate keys
78
Attributes have specific value in real world scenario. For example, age can only be a positive integer. The same constraints have been tried to employ on the attribute is bound to have a specific range of values.
Domain Constraints
79
- work on the concept of Foreign Keys. A foreign key is a key attribute of a relation that can be referred in other relation - states that if a relation refers to a key attribute of a different or same relation, then that key element must exist
Referential integrity constraints
80
- 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