首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
57
问题
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://www.kaotiyun.com/show/GuhZ777K
本试题收录于:
微软70228题库微软认证分类
0
微软70228
微软认证
相关试题推荐
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
[A]Enduringproblemssuchaswar,poverty,andviolenceultimatelyspringfromhumannature,whichnotechnologicalinnovation
Thisweekandnext,governments,internationalagenciesandnongovernmentalorganizationsaregatheringinMexicoCityattheWo
Writealettertooneofyourfriends,apologizingtohim/herforyourmakinghis/hercomputerstopworking.Youshouldwrite
LastThursday,theFrenchSenatepassedadigitalservicestax,whichwouldimposeanentirelynewtaxonlargemultinationalst
DrRichardBergland,abrainresearcherattheHarvardMedicalSchool,haswrittenapapersuggestingthathumanbrainisbasica
Thehumanbraincontains10thousandmillioncellsandeachofthesemayhaveathousandconnections.Suchenormousnumbersused
设置网络打印机,不允许每个连接到该计算机的用户都使用该网络打印机,只允许用户Administrators和Powerusers使用本地打印机。
通过【网上邻居】查找网上计算机和共享文件资源,IP为“202.204.54.23”,主机名为administrator,共享文件夹名为“tools”。
随机试题
王粲的《七哀诗》中,概括了当时离乱社会景象的句子是
股份公司中,增加股东财富的途径主要有两种:一是支付给股东的股利;二是______。
一色谱柱长60cm,载气流速为2cm/s,组分1、2的峰宽分别为0.95min和1.05min。若组分1、2的分配比为18.0和20.0。依次进行以下计算:(1)两组分的分配系数比K1/K2=();(2)tR(1)=(
男,24岁,近3个月乏力、面色苍白,近1周来反复鼻出血。查体:贫血面容,肝、脾未及。血红蛋白70g/L,白细胞计数3.5×109/L,血小板计数25×109/L,骨髓细胞增生低下,巨核细胞明显减少。首选治疗药物为
甲、乙、丙三人看见山坡散放着一群羊。三人就把羊群赶到山的东面隐藏起来,并商量由丙回家取钱作路费,将羊群运到外地销赃。丙回家取了路费,顺便叫上丁。丙、丁到隐藏羊群处与甲、乙会合一同将羊运到县城销售、分赃。后来经查证,该羊群是新疆某兵团农10连所有,他们在山的
某多层丙类仓库地上3层,建筑高度18m,建筑面积12000m2,占地面积4000m2,建筑体积72000m3,耐火等级二级。储存棉、麻、服装衣物等物品,堆垛储存,堆垛高度不于6m。属多层丙类2项堆垛储物仓库。该仓库设消防泵房和两个500m3的消防水池,消防
某公司2017年发生两笔互换房产业务,并已办理了相关手续。第一笔业务换出的房产价值500万元,换进的房产价值800万元,并支付300万元的差价款;第二笔业务换出的房产价值600万元,换进的房产价值300万元,并取得300万元的差价款。已知当地省政府规定的契
教师犹如露珠,滋润着吐艳的花朵,犹如泥土,无私地奉献养分。这形象地说明了为人师表所具有的()。
下列属于课程表安排应遵循的原则的是()。
JamesMartin指出,当给出许多主题数据库及业务活动过程后,在实现企业信息系统时,必须将这些主题数据库进行
最新回复
(
0
)