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
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:20
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
question
Engineering, 04.07.2019 19:10
The air in an automobile tire with a volume of 0.015 m3 is at 32°c and 140 kpa gage. determine the amount of air that must be added to raise the pressure to the recommended value of 206 kpa gage. assume the atmospheric pressure to be 128 kpa and the temperature and the volume to remain constant.[r-0.287 kj/kgk]
Answers: 3
You know the right answer?
Consider the following relations:
Emp(eid: integer, ename: varchar, sal: integer, age: integer...
Questions
question
Mathematics, 27.04.2020 02:27
question
English, 27.04.2020 02:27
question
Mathematics, 27.04.2020 02:27
question
Mathematics, 27.04.2020 02:27
question
Mathematics, 27.04.2020 02:27
Questions on the website: 13722362