Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
70-461 - Introducing Microsoft® SQL Server 2012
Typology: Exams
1 / 6
70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps
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
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
Unless stated above, no columns in the Employee table reference other tables. Confidential information about the employees is stored in a separate table named EmployeeData. One record exists within EmployeeData for each record in the Employee table. You need to assign the appropriate constraints and table properties to ensure data integrity and visibility. On which column in the Employee table should you a create a self-reference foreign key constraint?
A. DateHired B. DepartmentID C. EmployeelD D. EmployeeNum E. FirstName F. JobTitle G. LastName H. MiddleName I. ReportsToID
Answer: I
You need to create a table named OrderDetails on a new server. OrderDetails must meet the following requirements:
70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps
table is queried.
Answer: CREATE TABLE OrderDetails ( ListPrice money NOT NULL, Quantity int NOT NULL, LineItemTotal AS (ListPrice * Quantity) PERSISTED )
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
70-461 Exam Dumps 70-461 Exam Questions 70-461 PDF Dumps 70-461 VCE Dumps
You need to create a query that calculates the total sales of each OrderlD from a table named Sales.Details. The table contains two columns named OrderlD and ExtendedAmount. The solution must meet the following requirements:
Answer: ……