subject
Engineering, 16.05.2020 13:57 dpazmembreno

Consider the following relations:
Emp(eid: integer, ename: varchar, sal: integer, age: integer, did: integer)
Dept(did: integer, budget: integer, floor: integer, mgr_eid: integer)
Salaries range from $10,000 to $100,000, ages vary from 20 to 80, each department has about 5 employees on average, there are 10 floors, and budgets vary from $10,000 to $1M. You can assume uniform distribution. For each of the following queries, which of the listed index choices would you choose to speed up the query? Explain briefly (no more than 3 lines).
Query 1: Print ename, age, and sal for all employees.
Primary (clustered) hash index on (ename, age, sal) fields of Emp.
Secondary (unclustered) hash index on (ename, age, sal) fields of Emp.
Primary B+ tree index on (ename, age, sal) fields of Emp
Secondary hash index on (eid, did) fields of Emp.
No index.
Query 2: Find the dids of departments that are on the 10th floor and have a budget of less than $15,000.
Primary index on the floor field of Dept.
Secondary index on the floor field of Dept.
Primary B+ tree index on (floor, budget) fields of Dept.
Secondary B+ tree index on (floor, budget) fields of Dept.
No index.

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, cowgyrlup124
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
image
Engineering, 04.07.2019 18:10, jadeochoa4466
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 18:10, 0436500
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
image
Engineering, 04.07.2019 18:20, rjone8429
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
You know the right answer?
Consider the following relations:
Emp(eid: integer, ename: varchar, sal: integer, age: integer...

Questions in other subjects:

Konu
Mathematics, 03.10.2021 09:10
Konu
Physics, 03.10.2021 09:10