Professional Documents
Culture Documents
2015w Cs122a Project Quiz8
2015w Cs122a Project Quiz8
Winter
2015
_____________________
Score
(out
of
10)
_______________________________________________
Name
_______________________________
Student
ID
_______________________________________________
Name
_______________________________
Student
ID
1. Finding
all
outgoing
call
records
for
a
customer
takes
too
long.
The
following
query
is
used:
SELECT
*
FROM
CallInfo
WHERE
fromPhonenumber
=
9491234567
a. Write
a
statement
that
creates
an
index
that
can
help
speeding
this
query
up.
2
points
b. Should
this
index
be
clustered
or
unclustered?
Explain
your
decision.
1
point
6
4
10
12
10
12
2. Take
the
B+-Tree
shown
above.
For
every
question,
start
with
the
original
version
of
the
tree.
a. What
is
the
height
of
the
tree?
1
point
Winter 2015
b. How
many
pages
do
we
need
to
read
the
values
for
the
range
query
[3,
10]
(inclusive)
1
point
c. Show
the
tree
after
inserting
the
value
1.
You
can
leave
out
unchanged
subtrees
and
replace
them
with
(same)
1
point
d. Show
the
tree
after
deleting
the
value
4.
1
point
3. Imagine
the
tree
above
would
have
been
bulkloaded
(with
the
same
values).
a. Draw
the
bulkloaded
tree.
1
point
b. How
many
pages
do
we
need
to
read
the
values
for
the
range
query
[3,
10]?
1
point