Intro to Database Structures Midterm

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

35 Terms

1
New cards

sql cannot be executed in host language:

False

2
New cards

object-oriented model uses ‘class’ structure for logical level

True

3
New cards

network model has more expressive power than relational model

True

4
New cards

relation model is a proper model for multi media data

False

5
New cards

“Collection of (interrelated) computerized data” is

Database

6
New cards
7
New cards

What is “data dependency” in file system

Program depends on data

8
New cards

is NOT the drawbacks of file system.

all of the above

9
New cards

( ) is NOT true

atomic transactions are easily implemented in file system

10
New cards

__ is NOT the drawbacks of db

data independency

11
New cards

DB application programs access ( ) and ( )

logical level and view

12
New cards
13
New cards

( ) is NOT a DB model

E-R model

14
New cards

Which of the following is not a logical database structure?

chain

15
New cards

database management system

all of the above

16
New cards

Which of the following is a database administrator’s function

all of the above

17
New cards

The data dictionary contains information about

all of the above

18
New cards

In ( ), a parent record type can be linked to one or more “child” record types, but a child

record type can have only one parent.

4) hierarchical database

19
New cards

Network model uses ( ) as a tool for logical level.

graph or network

20
New cards

( ) can NOT uniquely identifies a single record.

foreign key

21
New cards

( ) is NOT a basic operation in relational algebra

join

22
New cards



employee (p_id, name, dept, city)

works (p_id, proj_id, salary)

project (proj_id, budget)



Show candidate keys in employee

p_id

23
New cards


employee (p_id, name, dept, city)

works (p_id, proj_id, salary)

project (proj_id, budget)



show the primary key of each table

4-1) employee


4-2) works


4-3) project:

4-1) p_id


4-2) (p_id and proj_id) together


4-3) proj_id

24
New cards


employee (p_id, name, dept, city)

works (p_id, proj_id, salary)

project (proj_id, budget)


show foreign key(s) in ‘works’ table: there are two foreign keys

p_id and proj_id

25
New cards

express the following using relational algebra

1) Find information about employees who live in city “Miami”.

city=“Miami ( )

employee

26
New cards

express the following using relational algebra

Find the name of employees who live in city “Miami”.


OOOOO (city=“Miami” (employee))

city=’Miami’ or city=”Miami”

27
New cards
28
New cards
29
New cards
30
New cards
31
New cards
32
New cards
33
New cards
34
New cards
35
New cards