首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
You are the administrator of a SQL Server 2000 computer. The server contains a database named Inventory. The database is configu
You are the administrator of a SQL Server 2000 computer. The server contains a database named Inventory. The database is configu
admin
2009-05-19
31
问题
You are the administrator of a SQL Server 2000 computer. The server contains a database named Inventory. The database is configured as shown in the exhibit.
Users frequently need details about parts. Users search for data by using the following query.
SELECT Parts.SKU, Locations.Description, Manufacturer.Name,
PartsLocations.Qty, PartsLocations.LastInventoried
FROM Parts
INNER JOIN Manufacturer ON Parts.ManufacturerID=
Manufacturer.ManufacturerID
INNER JOIN PartsLocation ON Parts.PartID = Parts.Location.PartsID
INNER JOIN Locations ON Parts.LocationID= Locations.LocationID
WHERE SKU?
You need to accelerate query response time. What should you do?
选项
A、Create a parameterised stored procedure to retrieve the data.
B、Create a denormalized table that is maintained by triggers.
C、Use ad hoc queries to retrieve the data.
D、Create a nonclustered index on the primary key of each table.
答案
D
解析
Explanation: A nonclustered index is similar to an index in a textbook. The data is stored in one place, the index in another, with pointers to the storage location of the data. The index contains entries describing the exact location in the table of the data values being searched for in the queries and should be used for columns that contain a large number of distinct values; queries that do not return large result sets; columns frequently involved in search conditions of a query that return exact matches; and decision-support-system applications for which joins and grouping are frequently required. Create multiple nonclustered indexes on columns involved in join and grouping operations, and a clustered index on any foreign key columns.
Note: A better solution, not listed here, would to create clustered indexes on the primary keys and nonclustered indexes on the foreign keys.
Incorrect Answers:
A: A parameterized query would not improve performance.
Parameterized queries are SQL queries written for reusability. They contain parameter markers as placeholders for data that will change from execution to execution. In the Data Transformation Services (DTS) tasks that use parameterized queries.
B: Reasonable normalization often includes few regularly executed queries that use joins involving more than four tables. In this scenario four tables are being joined in the query. The normalization here is thus permissible.
Note: Database normalization often improves query performance. When useful indexes are available, the SQL Server 2000 query optimizer can select rapid, efficient joins between tables.
Normalization is advantageous as it aids faster sorting and index creation; enables a larger number of clustered indexes; allows for narrower and more compact indexes; reduces the number of indexes per table, which improves the performance of INSERT, UPDATE, and DELETE statements; and reduces null values and the opportunity for inconsistency, which increase database compactness.
However, as normalization increases, so do the number and complexity of joins required to retrieve data. Too many complex relational joins between too many tables can hinder performance.
C: An ad hoc query is a query that is composed for a particular task. The code in this scenario is an example of an ad hoc query.
转载请注明原文地址:https://kaotiyun.com/show/GuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
In2009theEuropeanCommissioncarriedoutaninvestigationintoMicrosoft.TheAmericansoftwaregianttiedInternetExplorer,
In2009theEuropeanCommissioncarriedoutaninvestigationintoMicrosoft.TheAmericansoftwaregianttiedInternetExplorer,
[A]Thefirststepinpreparingamarketingplanisthatofproducingtheinformationnecessaryfordecision-making.Usually,a
School-agechildrenshouldparticipatein60minutesormoreofmoderatetovigorousphysicalactivitydaily,accordingtoanex
[A]Butworkisunderwaytogetcomputerstocapturehumanlifeandrememberitaspeopledo—recallingbitsofexperiencethata
AlmosteveryyearsincetheendofthefinancialcrisishasstartedwithrosyexpectationsamongAmericanforecasters,andthis
Fewthingssay"forgetI’mhere"quitesoeloquentlyastheposeoftheshy—theavertedgaze,thehunchedshoulders,thebodypi
WhentheresidentsofBuenosAireswanttochangethepesostheydonottrustintothedollarstheydo,theygotoacueva,or"
Afterbeinginvolvedinanaccident,youwerelookedafterbyanotherperson.Writealetterofthanks:1)mentioningwhath
GivingmillionsofexistingPayPalcustomerstheabilitytobuyattheclickofabuttonhasenormouspotentialforincreasing
随机试题
1996年7月12日,李某(男,18岁)和不满14周岁的幼女赵某发生性关系。2008年12月10日,李某又和杨某打架,致杨某轻伤。2014年9月17日,公安机关将李某抓获,2015年3月18日由检察机关向人民法院提起公诉。对李某应以下列哪一罪名追诉?(
下列哪些安装工程量以“套”为计量单位( )。
关于土方施工机械的作业范围,下列说法中正确的是()。
某建设项目经评标委员会评标后,最终确定甲单位中标,评标委员会于2007年12月15日出具了评标报告,招标人在公示后于2007年12月23日向甲单位发出了中标通知书,甲单位于2007年12月26日收到中标通知书,则该中标通知书于()对招标人和中标人产
某投资者2月份1以500点买进一张5月份到期、执行价格为13000点的恒指看涨期权,同时,又以300点的权利金买入一张5月份到期、执行价格为13000点的看跌期权,则其盈亏平衡点是()。
财务顾问将申报文件报中国证监会审核期间,委托人和财务顾问终止委托协议的,财务顾问和委托人应当自终止之日起( )个工作日内向中国证监会报告,申请撤回申报文件,并说明原因。
甲公司与乙公司协议合作开发某产品的生产新技术,共享利益。但当乙公司主张申请专利时,甲认为技术还不成熟,一旦公开将丧失其秘密性,故不同意申请。乙公司见此状况遂独自申报专利,但被专利局驳回。后乙公司与甲公司几经协商,甲公司声明放弃其共有的专利申请权。乙
设定某储户于2014年1月1日存入银行60000元,年利率为2.00%,存款到期日即2015年1月1日将存款全部取出,如果国家规定凡2014年11月1日后孳生的利息收入应缴纳利息税,税率为20%,那么该储户实际提取的本金合计为()。
被恩格斯称为“中世纪的最后一位诗人,同时又是新时代的最初一位诗人”的是()。
Massproduction,thedefiningcharacteristicoftheSecondWaveeconomy,becomesincreasinglyobsoleteasfirmsinstallinformat
最新回复
(
0
)