Microsoft SQL Server 2012 Certification Exam Practice Questions, Exams of Database Programming

70-461 - Introducing Microsoft® SQL Server 2012

Typology: Exams

2016/2017

Uploaded on 07/12/2017

prkumar-1
prkumar-1 🇮🇳

4

(3)

5 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Free VCE and PDF Exam Dumps from PassLeader
70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps
http://www.passleader.com/70-461.html
Vendor: Microsoft
Exam Code: 70-461
Exam Name: Querying Microsoft SQL Server 2012
Question 101 The End
Visit PassLeader and Download Full Version 70-461 Exam Dumps
QUESTION 101
You want to add a new GUID column named BookGUID to a ta ble named dbo.Book that alread y
contains data.
BookGUID will have a constraint to ensure that it always has a value when new rows are inserted
into dbo.Book.
You need to ensure that the new column is assigned a GUID for existing rows.
Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL
statements from the list of statements to the answer area and arrange them in the correct order.)
Answer:
pf3
pf4
pf5

Partial preview of the text

Download Microsoft SQL Server 2012 Certification Exam Practice Questions and more Exams Database Programming in PDF only on Docsity!

70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps

 Vendor: Microsoft

 Exam Code: 70- 461

 Exam Name: Querying Microsoft SQL Server 2012

 Question 101 – The End

Visit PassLeader and Download Full Version 70-461 Exam Dumps

QUESTION 101

You want to add a new GUID column named BookGUID to a table named dbo.Book that already contains data. BookGUID will have a constraint to ensure that it always has a value when new rows are inserted into dbo.Book. You need to ensure that the new column is assigned a GUID for existing rows. Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of statements to the answer area and arrange them in the correct order.)

Answer:

70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps

Explanation: Actually, in the real world, you don't have to use WITH VALUES at the end of the statement and it works just as well. But because the question specifically states which FOUR TSQL statements to use, we have to include it. http://msdn.microsoft.com/en-us/library/ms190273.aspx

QUESTION 102

You administer a Microsoft SQL Server 2012 database. The database contains a table named Employee. Part of the Employee table is shown in the exhibit. (Click the Exhibit button.)

70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps

table is queried.

  • The code must NOT use any object delimiters. The solution must ensure that LineltemTotal is stored as the last column in the table. Part of the correct T- SQL statement has been provided in the answer area. Provide the complete code.

Answer: CREATE TABLE OrderDetails ( ListPrice money NOT NULL, Quantity int NOT NULL, LineItemTotal AS (ListPrice * Quantity) PERSISTED )

QUESTION 104

You have a database named Sales that contains the tables shown in the exhibit. (Click the Exhibit button.)

70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps

You have an application named Appl. You have a parameter named @Count that uses the int data type. App1 is configured to pass @Count to a stored procedure. You need to create a stored procedure named usp_Customers for App1 that returns only the number of rows specified by the @Count parameter. The solution must NOT use BEGIN and END statements. Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code.

Answer: CREATE PROCEDURE usp_Customers @Count int SELECT TOP(@Count) Customers.LastName FROM Customers ORDER BY Customers.LastName

QUESTION 105