Question 1 1 . Among the five , we should create an unclustered hash forefinger on (ename , age , sal ) fields of Emp (b ) since we could only do an mightiness scan for us to speed up the maneuver . If our system does not include index only architectural plans indeed we shouldn t create an index for this head (e . However since this query requires us to access all Emp . records , an index would really patron us anything at all . Therefore , we should access the records use a scan2 . For this case , we should create clustered dense B shoetree index (c ) on (floor , budget ) fields of Dept , because the records allow for be organized under these fields . Thus , if we get and lean this query , the first record with floor 10 should be retrieved the while the other records with floor 10 should be evidence in the of the budg et .

Note that this plan is not an index-only plan (must look up didsQuestion 2We should place the in the shopping center of the tracks because collectioned speed is not an issue due to the small surface of it of the . Apart from that , the seek time is minimized when s be place in the centerFor this case , we should place the and index on the inner tracks The DBMS will alternately access the pages of the index and the thus , the two should reside in close likeness in to reduce seek times . By doing so , we will also...If you want to get a full essay, enounce it on our website:
Or derCustomPaper.comIf you want ! to get a full essay, visit our page: write my paper
No comments:
Post a Comment