Basics DB Flashcards

(50 cards)

1
Q

DBMS

A

DB + collection of programs to access DB

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

WHY DBMS?

A

Data redundancy and inconsistency, Difficulty in accessing data, Data isolation, Integrity problems, Atomicity, Concurrent access, Security problems

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

Data redundancy and inconsistency

A

With file system, same data stored at many places, if we change data at one place but not others, data becomes inconsistent.

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

Difficulty in accessing data

A

Due to the use of big programs.

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

Integrity constraint problems

A

Age cannot be negative

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

Atomicity

A

If one change made then all should follow otherwise rollback , not possible in FS

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

Concurrent access

A

Multiple people accessing same data

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

Security problems

A

Authorized access

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

View of data

A

Physical, logical, view

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

Logical level

A

Tables of DB, columns, etc.

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

View level

A

UI level

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

Physical level

A

Where data actually stored in disk

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

Committ

A

Save the changes made by transaction

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

Rollback

A

undo the changes done by transaction

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

Automatic rollback is

A

Atomicity

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

NULL

A

Representation of no value

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

DB Languages

A

DDL, DML

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

DDL

A

Creation/deletion of tables, adding/deleting cols., changing col. names

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

DML

A

Inserting/deleting/updating rows, Select

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

DB languages

A

Procedural and non procedural

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

Procedural

A

what data and how to get those data

22
Q

Non procedural

A

what data and not how to get those data. eg. SQL

23
Q

DB users

A

Naive users(who interact using GUI), application programmers(who access DB while dev), Sophisticated users(who write queries), Specialized users(who create DBMS tools), DBA(manage data at physical/logical/view level)

24
Q

DB system structure

A

Storage manager, Query processor components

25
DATA MODELS
ER and relational, network, hierarichal, Object oriented
26
ER model
contains entities, relationships
27
Relational model
uses tables
28
DB design
Requirement analysis, conceptual designing using ER modelling, Schema refinement ER to relational, logical DB design, physical DB design, security design
29
ER Model
Entity, attribute, relationships
30
Entity
real world object(rectangle)
31
Domain
values permitted for an attribute
32
Attribute
Property of an entity(oval)
33
Relationship
association among 2 or more entities(diamond)
34
Key
attribute or set of attributes which can uniquely identify an entity
35
Prime attribute/key attribute
All attributes which are part of key
36
Types of relationships
Unary, binary, ternary
37
Unary
Employee manages employee
38
Descriptive attribute
Attribute of relationship, educator teaches courses in dept since (here teaches, in are relationship and since is descriptive attribute)M
39
Mapping cardinality
One to one, one to many, many to many
40
One side represented by
Arrow
41
Participation constaints
Total,partial
42
Total
All entities take part in relationship, double line
43
Partial
Not all entities take part in relationship, single line
44
See questions in copy
45
Weak entity
cannot be uniquely identified by its own attributes, double lined rectangle
46
A weak entity set can only have a relation with a strong entity set true
True , identifying relationship(weak relationship),double diamond, and total participation from weak entity side.
47
Dominant entity
Entity of strong entity set in a weak relationship
48
Subordinate entity
Entity of weak entity set in a weak relationship
49
We can identify subordinate entities using
Strong entities of a weak relationship
50
Types of attributes
Single values, multi valued(double oval), composite, given, derived, prime, non prime,