nerdexam
Microsoft

70-451 · Question #147

You are a SQL Server 2008 developer. You create an online transaction processing (OLTP) database by using SQL Server 2008 in an enterprise environment. The database contains a table named…

The correct answer is B. Create multiple indexed views from the SalesDetails table so that each view contains. Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test…

Design an optimized database solution

Question

You are a SQL Server 2008 developer. You create an online transaction processing (OLTP) database by using SQL Server 2008 in an enterprise environment. The database contains a table named SalesDetails. Each record in the table contains data in any one of the following pairs of nullable columns:

  • InternetSalesTargets and InternetSales
  • ResellerSalesTargets and ResellerSales
  • ForeignSalesTargets and ForeignSales

The table also contains three NOT NULL key columns. A large number of records are inserted on a daily basis into the SalesDetails table. Summary reports are generated from the SalesDetails table. Each report is based on aggregated data from any one of the pairs of nullable columns. You need to design a view or views to meet the following requirements:

  • The SalesDetails table cannot be directly modified.
  • The performance of the reports is maximized.
  • The amount of storage space for each report is minimized.

What should you do?

Options

  • ACreate an indexed view from the SalesDetails table that contains aggregated data of all the
  • BCreate multiple indexed views from the SalesDetails table so that each view contains
  • CCreate multiple Report tables from the SalesDetails table so that each Report table contains
  • DPerform a quick transfer of aggregated new records to a staging table at the end of each

How the community answered

(34 responses)
  • A
    12% (4)
  • B
    79% (27)
  • C
    3% (1)
  • D
    6% (2)

Explanation

Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.

Topics

#indexed views#OLTP optimization#nullable columns#query performance

Community Discussion

No community discussion yet for this question.

Full 70-451 Practice