PrepAway - Latest Free Exam Questions & Answers

Category: 70-461

Exam 70-461: Querying Microsoft SQL Server 2012

You need to reduce procedure cacheusage from these statements without creating any additional indexes

You are developing a database application by using Microsoft SQL Server 2012. An application that usesa
database begins to run slowly. You discover that a large amount of memory is consumed by single-use
dynamic queries. You need to reduce procedure cacheusage from these statements without creating any
additional indexes. What should you do?

You need to optimize the statement

You are developing a database application by using Microsoft SQL Server 2012. An application that usesa
database begins to run slowly. Your investigation shows the root cause is a query against a read-only table that
has a clustered index. The query returns the following six columns:
One column in its WHERE clause contained in a non-clustered index Four additional columns
One COUNT (*) column based on a grouping of the four additional columns You need to optimize the
statement.
What should you do?

Which Transact-SQL query should you use?

You create a table that has the StudentCode, SubjectCode, and Marks columns to record mid-year marks for
students. The table has marks obtained by 50 students for various subjects. You need to ensure that the
following requirements are met:
Students must be ranked based on their average marks.
If one or more students have the same average, the same rank must be given to these students.
Consecutive ranks must be skipped when the same rank is assigned.
Which Transact-SQL query should you use?


Page 7 of 10« First...56789...Last »