Midterm 1 Flashcards

1
Q

Data

A

data are facts that can be accessed

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

information

A

data accessed for a particular purpose

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

metadata

A

data that describes the structure of data

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

dbms vs database system

A

dbms is for crud and database maintenance

database system is a computer based system whose purpose is to enable an efficient interaction between users and information captured on the database

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

direct vs indirect interaction

A

directly interacting w database vs interacting with a front end application

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

database development steps

A

conceptual modeling

logical modeling

database implementation

developing front end applications

database deployment

database use

database administration and maintenance

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

step one db development

A

requirement collection definition and visualization (ER )

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

step two database modeling

A

creates model implementable by dbms software

ex

entity
attribute 1
attribute 2 (FK) connnects to entity 2

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

step two database modeling

A

creates model implementable by dbms software

ex

entity
attribute 1
attribute 2 (FK) connnects to entity 2

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

types of sql language

A

ddl

dml

tcl

session control statements

system control statement

embedded sql

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

ddl ?

A

data definition language

create alter drop revoke grant analyze audit comment

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

dml?

A

data manipulation language

call delete merge update insert select, explain pan, lock table,

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

tcl?

A

transaction control language

commit, rollback , savepoint, set transaction set constraint

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

session control statements

A

alter session, set role

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

system control statement

A

alter system

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

embedded sql statements

A

ddl dml and transaction control statements within a procedural language program

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

step 3 database design

A

database implementation

using a dbms to implement the database model as an actual database (sql)

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

what is er modeling

A

conceptual database modeling technique

enables structuring and organizing of requirements collection process and provides a way to graphically represent

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

er diagram

A

serves as blueprint for database

two basic constructs entity and relationship

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

what are entities

A

constructs the database keeps track of

represented by a rectangle

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

entity instances

A

occurrences of an entity

not depicted in er diagrams

ex: student entity sanji occurrence

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

attribute

A

characteristic of an entity
represents the details that will be recorded about an entity
within an entity attributes must have different names

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

unique attribute

A

attributes whose value is unique for each entity instance

each entity must have atleast one unique attribute

24
Q

types of db models

A

conceptual

logical

physical

25
Q

conceptual model

A

high level static model that represents business concepts and structures. It’s used to create a shared understanding and communicate ideas

26
Q

logical model

A

adds more detail to conceptual model defining entities attributes relationships and keys. identifies potential issues in existing systems and serves as blueprint for physical model

27
Q

physical model

A

a model that translates the logical model into technical specifications for a specific database system.

presents physical db structure and is ready to implement

28
Q

sql command categories

A

ddl dml dcl (grant revoke)

data control language
tcl

29
Q

ddl function

A

create and modify structure of db

30
Q

dml function

A

insert modify and retrieve data

update
delete
select

31
Q

dcl function

A

used for data access control

32
Q

why normalize

A

performance

storage efficiency

maintenance overhead

data consistency

33
Q

update anomalies

A

inconsistent data due to multiple copies of the same info

34
Q

insert anomalies

A

difficulty adding new data bc of interdependencies between fields

35
Q

delete anomalies

A

unintended loss of critical data when related data is deleted

36
Q

normalization

A

process used to improve the design of relational databases

37
Q

1NF

A

eliminate repeating values

must have atomic (indivisible values)

book a, book b

book a

book b

38
Q

1NF rule

A

each table column should contain unique atomic data and each record should be unique

39
Q

2NF

A

split into related tables

ex;

order is is not uniquely identifiable so instead move order id and customer name to a separate table

40
Q

2nf rule

A

split table into two related tables

eliminate partial dependencies (all non key attributes are fully dependent on entire primary key)

41
Q

3nf

A

eliminate transitive dependencies

All non key attributes depend only on primary key

split so title author price and then order i’d title quantity

42
Q

denotmalizatiok

A

reversing normalization by joining normalized relations to improve query performance

43
Q

relational database model

A

logical database model that represents a database as a collection of related tables

44
Q

relation

A

table in relational database

45
Q

mapping composite attributes

A

just include the attribute names and not the composite part

hair - color, length in a table will just be color and length

46
Q

unique composite mapping

A

underline the attributes in the relation

47
Q

entity integrity constraint

A

no primary key can have null values

48
Q

foreign key

A

column in relation that refers to a primary key column in another relation

in relational schema the fk points to the pk it came from

49
Q

referential integrity constraint

A

in each row of a relation containing a foreign key the value must either match a value in the primary key of the referred relation or be null

50
Q

candidate keys

A

a column that may be chosen as a primary key

only map one and others can be denoted with a u

51
Q

mapping derived attributes

A

represented with a dashed line

not mapped in relational schema

implemented in front end db

52
Q

double circle attr

A

may contain multiple values

53
Q

mapping unary relationships

A

the relationship is a foreign key that points to the primary key in the same relation

54
Q

implicit constraints

A

each relation must have diff name
in relation:
each column has different name
each row unique
domain constraint
single valued rows
order is irrelevant

primary key
no null pk

55
Q

user defined constraint

A

added by database designers

example one column can be null