Microsoft 70-461 Study Material

We are Providing you the Best Study Material to Pass the Microsoft 70-461 Certification Exam. Our Material is Very Helpful for those Students Who want to pass their Certification Exams in High Scores.

Latest Microsoft News

We are also Made you aware of all the latest News of Microsoft as well as the Products of Microsoft.

Microsoft 70-461 Certifications Exam Questions

Here You Can Get the Latest Exam Questions Of Microsoft 70-461 Certification Exams. Your Success is Guaranteed if You go through these Questions Once.

We Ensure Your Success

We Can Understand the Importance of your Success in Exam thats why We Put All Our Efforts to Provide You the Best and Most Updated Study Material.

Wednesday 8 February 2017

Microsoft 70-461 Exam Questions

Question No: 22

A table named Profits stores the total profit made each year within a territory. The Profits table has columns named Territory, Year, and Profit. You need to create a report that displays the profits made by each territory for each year and its previous year. Which Transact-SQL query should you use?

A. SELECT Territory, Year, Profit,
LEAD(Profit, 1, 0) OVER (PARTITION BY Territory ORDER BY Year) AS PrevProfit FROM Profits

B. SELECT Territory, Year, Profit,
LAG(Profit, 1, 0) OVER (PARTITION BY Year ORDER BY Territory) AS PrevProfit FROM Profits

C. SELECT Territory, Year, Profit,
LAG(Profit, 1, 0) OVER (PARTITION BY Territory ORDER BY Year) AS PrevProfit FROM Profits

D. SELECT Territory, Year, Profit,
LEAD(Profit, 1, 0) OVER (PARTITION BY Year ORDER BY Territory) AS PrevProfit FROM Profits

Answer: C