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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
Answers: 3
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
You know the right answer?
Consider the following relations:
Emp(eid: integer, ename: varchar, sal: integer, age: integer...
Questions
question
Mathematics, 08.04.2020 07:20
question
Mathematics, 08.04.2020 07:20
question
Mathematics, 08.04.2020 07:21
question
Mathematics, 08.04.2020 07:21
question
Mathematics, 08.04.2020 07:21
question
Mathematics, 08.04.2020 07:21
question
Mathematics, 08.04.2020 07:21
question
Spanish, 08.04.2020 07:21
question
Mathematics, 08.04.2020 07:21
Questions on the website: 13722367