Valid 70-761 Dumps shared by PassLeader for Helping Passing 70-761 Exam! PassLeader now offer the newest 70-761 VCE dumps and 70-761 PDF dumps, the PassLeader 70-761 exam questions have been updated and ANSWERS have been corrected, get the newest PassLeader 70-761 dumps with VCE and PDF here: http://www.passleader.com/70-761.html (135 Q&As Dumps –> 171 Q&As Dumps –> 215 Q&As Dumps)
BTW, DOWNLOAD part of PassLeader 70-761 dumps from Cloud Storage: https://drive.google.com/open?id=0B-ob6L_QjGLpaEZzRVFnOE9OenM
QUESTION 21
Drag and Drop Question
You have a table named HR.Employees as shown in the exhibit. (Click the exhibit button.)
You need to write a query that will change the value of the job title column to Customer Representative for any employee who lives in Seattle and has a job title of Sales Representative. If the employee does not have a manager defined, you must not change the title. Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order.
Answer:
Explanation:
https://msdn.microsoft.com/en-us/library/ms177523.aspx
QUESTION 22
Hotspot Question
You have the following Transact-SQL query:
What type of functions are used in the query? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
Box 1: Scalar
The return value of a function can either be a scalar (single) value or a table.
Box 2: Table-Valued
The APPLY operator allows you to invoke a table-valued function for each row returned by an outer table expression of a query. The table-valued function acts as the right input and the outer table expression acts as the left input. The right input is evaluated for each row from the left input and the rows produced are combined for the final output. The list of columns produced by the APPLY operator is the set of columns in the left input followed by the list of columns returned by the right input.
References:
https://msdn.microsoft.com/en-us/library/ms186755.aspx
https://technet.microsoft.com/en-us/library/ms175156(v=sql.105).aspx
QUESTION 23
Drag and Drop Question
You have a database that includes the following tables:
You need to create a list of all customer IDs and the date of the last order that each customer placed. If the customer has not placed any orders, you must return the date January 1, 1900. The column names must be CustomerID and LastOrderDate. Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order.
Answer:
Explanation:
Box 1: SELECT…COALESCE…
The COALESCE function evaluates the arguments in order and returns the current value of the first expression that initially does not evaluate to NULL.
Box 2: LEFT OUTER JOIN…
The LEFT JOIN (LEFT OUTER JOIN) keyword returns all rows from the left table (table1), with the matching rows in the right table (table2). The result is NULL in the right side when there is no match. A customer might have no orders so the right table must be allowed have a NULL value.
Box 3: ON c.custid = o.custid
We JOIN on the custID column, which is available in both tables.
Box 4: GROUP BY c.custid
References:
https://technet.microsoft.com/en-us/library/ms189499(v=sql.110).aspx
http://www.w3schools.com/sql/sql_join_left.asp
QUESTION 24
Hotspot Question
You run the following Transact-SQL statement:
You need to ensure that you can insert data into the table. What are the characteristics of the data? To answer, select the appropriate options in the answer area.
Answer:
Explanation:
Box 1: custid
IDENTITY indicates that the new column is an identity column. When a new row is added to the table, the Database Engine provides a unique, incremental value for the column. Identity columns are typically used with PRIMARY KEY constraints to serve as the unique row identifier for the table.
Box 2: postalcode
postalcode is declared as NOT NULL, which means that a value must be inserted.
Box 3: region
Fax is also a correct answer. Both these two columns are declared as NULL, which means that data entry is optional.
References: https://msdn.microsoft.com/en-us/library/ms174979.aspx
QUESTION 25
You create a table named Sales.Orders by running the following Transact-SQL statement:
You need to write a query that meets the following requirements:
– removes orders from the table that were placed before January 1, 2012
– uses the date format of YYYYMMDD
– ensures that the order has been shipped before deleting the record
Construct the query using the following guidelines:
– use one-part column names and two-part table names
– do not use functions
– do not surround object names with square brackets
– do not use variables
– do not use aliases for column names and table names
Part of the correct Transact-SQL has been provided in the answer area below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within the code that has been provided as well as below it.
Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.
Answer: Pending
Get the newest PassLeader 70-761 VCE dumps here: http://www.passleader.com/70-761.html (135 Q&As Dumps –> 171 Q&As Dumps –> 215 Q&As Dumps)
And, DOWNLOAD the newest PassLeader 70-761 PDF dumps from Cloud Storage for free: https://drive.google.com/open?id=0B-ob6L_QjGLpaEZzRVFnOE9OenM