Best way to pass the Microsoft 70-761 exam – 100% free


Posted On Nov 7 2019 by

What is the best way to pass the Microsoft 70-761 exam? (First: Exam practice test, Second: Lead4pass Microsoft expert.) You can get free Microsoft MCSA 70-761 exam practice test questions here.
Or choose https://www.leads4pass.com/70-761.html (221 Q&As). Study hard to pass the exam easily!

Microsoft MCSA 70-761 Exam Video

Table of Contents:

Latest Microsoft MCSA 70-761 google drive

[PDF] Free Microsoft MCSA 70-761 pdf dumps download from Google Drive: https://drive.google.com/open?id=1RH2MOMUVVB6XAq8a_qtntBzPuVkYTB_m

Exam 70-761: Querying Data with Transact-SQL – Microsoft:https://www.microsoft.com/en-us/learning/exam-70-761.aspx

Skills measured

This exam measures your ability to accomplish the technical tasks listed below.

  • Manage data with Transact-SQL (40–45%)
  • Query data with advanced Transact-SQL components (30–35%)
  • Program databases by using Transact-SQL (25–30%)

Who should take this exam?

This exam is intended for SQL Server database administrators, system engineers, and developers with two or more years of experience who are seeking to validate their skills and knowledge in writing queries.

Latest updates Microsoft 70-761 exam practice questions

QUESTION 1

You have a database that contains the following tables: lead4pass 70-761 exam question q1

You need to write a query that returns a list of all customers who have not placed orders. Which Transact-SQL
statement should you run?
A. SELECT c.custid FROM Sales.Customers c INNER JOIN Sales.Order oON c.custid = o.custid
B. SELECT custid FROM Sales.Customers INTERSECTSELECT custid FROM Sales.Orders
C. SELECTc.custid FROM Sales.Customers c LEFT OUTER Sales.Order oON c.custid = o.custid
D. SELECT c.custid FROM Sales.Customers c LEFT OUTER JOIN Sales.Order oON c.custid = o.custid WHERE
orderid IS NULL
E. SELECT custid FROM Sales.Customers UNION ALL SELECT custid FROM Sales.Orders
F. SELECT custid FROM Sales.Customers UNION SELECT custid FROM Sales.Orders
G. SELECT c.custid FROM Sales.Customers c RIGHT OUTER JOIN Sales.Orders o ON c.custid = o.custid
Correct Answer: D
Inner joins return rows only when there is at least one row from both tables that matches the join condition. Inner joins
eliminate the rows that do not match with a row from the other table. Outer joins, however, return all rows from at least
one of the tables or views mentioned in the FROM clause, as long as those rows meet any WHERE or HAVING search
conditions. All rows are retrieved from the left table referenced with a left outer join, and all rows from the right table
referenced in a right outer join. All rows from both tables are returned in a full outer join.
References: https://technet.microsoft.com/en-us/library/ms187518(v=sql.105).aspx

 

QUESTION 2
Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is
repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is
exactly the same in each question on this series.
You have a database that tracks orders and deliveries for customers in North America. System versioning is enabled for
all tables. The database contains the Sales.Customers, Application.Cities, and Sales.CustomerCategories tables.
Details for the Sales.Customers table are shown in the following table:lead4pass 70-761 exam question q2

Details for the Application.Cities table are shown in the following table:

lead4pass 70-761 exam question q2-1

Details for the Sales.CustomerCategories table are shown in the following table:

lead4pass 70-761 exam question q2-2

You need to create a query that meets the following requirements:
For customers that are not on a credit hold, return the CustomerID and the latest recorded population for the delivery
city that is associated with the customer.
For customers that are on a credit hold, return the CustomerID and the latest recorded population for the postal city that
is associated with the customer.
Which two Transact-SQL queries will achieve the goal? Each correct answer presents a complete solution.

lead4pass 70-761 exam question q2-3

A. B. C. D.
Correct Answer: A
Using Cross Joins
A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The
size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the
second table.
However, if a WHERE clause is added, the cross join behaves as an inner join.
B: You can use the IIF in the ON-statement.
IIF returns one of two values, depending on whether the Boolean expression evaluates to true or false in SQL Server.
References: https://technet.microsoft.com/en-us/library/ms190690(v=sql.105).aspx https://msdn.microsoft.com/en-us/library/hh213574.aspx

 

QUESTION 3
SIMULATION
You have a database that contains the following tables.lead4pass 70-761 exam question q3

You need to create a query that returns each complaint, the names of the employees handling the complaint, and the
notes on each interaction. The Complaint field must be displayed first, followed by the employee’s name and the notes.
Complaints must be returned even if no interaction has occurred. Construct the query using the following guidelines:
Use two-part column names.
Use one-part table names.
Use the first letter of the table name as its alias.
Do not Transact-SQL functions.
Do not use implicit joins.
Do not surround object names with square brackets.
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.

lead4pass 70-761 exam question q3-1

1 SELECT c.Complaint, e.Name, i.Notes 2 FROM Complaints c 3 JOIN __________________ 4 JOIN
__________________

lead4pass 70-761 exam question q3-2

Correct Answer:
1 SELECT c.Complaint, e.Name, i.Notes
2 FROM Complaints c
3 JOIN Interactions i ON c.ComplaintID = i.ComplaintID
4 JOIN Employees e ON i.EmployeeID = E.EmployeeID

 

QUESTION 4
You are building a stored procedure that will update data in a table named Table1 by using a complex query as the data
source.
You need to ensure that the SELECT statement in the stored procedure meets the following requirements:
Data being processed must be usable in several statements in the stored procedure.
Data being processed must contain statistics.
What should you do?
A. Update Table1 by using a common table expression (CTE).
B. Insert the data into a temporary table, and then update Table1 from the temporary table.
C. Place the SELECT statement in a derived table, and then update Table1 by using a JOIN to the derived table.
D. Insert the data into a table variable, and then update Table1 from the table variable.
Correct Answer: B
Temp Tables… Are real materialized tables that exist in tempdb Have dedicated stats generated by the engine Can be
indexed Can have constraints Persist for the life of the current CONNECTION Can be referenced by other queries or
subproce Incorrect Answers:
A: CTEs do not have dedicated stats. They rely on stats on the underlying objects
C: Unlike a derived table, a CTE can be self-referencing and can be referenced multiple times in the same query.
References: https://technet.microsoft.com/en-us/library/ms190766(v=sql.105).aspx
https://dba.stackexchange.com/questions/13112/whats-the-difference-between-a-cte-and-a-temp-table

 

QUESTION 5
HOTSPOT
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.lead4pass 70-761 exam question q5

Hot Area:

lead4pass 70-761 exam question q5-1

Correct Answer:

lead4pass 70-761 exam question q5-2

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 6
SIMULATION
You create a table named Sales.Orders by running the following Transact-SQL statement:lead4pass 70-761 exam question q6

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

lead4pass 70-761 exam question q6-1

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. lead4pass 70-761 exam question q6-2

Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character
position.
A. Check the answer in explanation.
Correct Answer: A

 

QUESTION 7
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains
a unique solution that might meet the stated goals. Some question sets might have more than one correct solution,
while others might not have a correct solution.
After you answer a question in this section. You will NOT be able to return to it. As a result, these questions will not
appear in the review screen.
You create a table named Products by running the following Transact-SQL statement:lead4pass 70-761 exam question q7

You have the following stored procedure:

lead4pass 70-761 exam question q7-1

You need to modify the stored procedure to meet the following new requirements:
Insert product records as a single unit of work.
Return error number 51000 when a product fails to insert into the database.
If a product record insert operation fails, the product information must not be permanently written to the database.
Solution: You run the following Transact-SQL statement:

lead4pass 70-761 exam question q7-2

Does the solution meet the goal?
A. Yes
B. No
Correct Answer: B


QUESTION 8
DRAG DROP
You have a table named HR.Employees as shown in the exhibit. (Click the exhibit button.)

lead4pass 70-761 exam question q8

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.
Select and Place:

lead4pass 70-761 exam question q8-1

Correct Answer:

lead4pass 70-761 exam question q8-2

References: https://msdn.microsoft.com/en-us/library/ms177523.aspx

QUESTION 9
You have a table named Table1 that contains 200 million rows. Table1 contains a column named SaleDate that has a
data type of DateTime2(3). Users report that the following query runs slowly.lead4pass 70-761 exam question q9

You need to reduce the amount of time it takes to run the query.
What should you use to replace the WHERE statement?
A. WHERE SaleDate >= \\’2017-01-01\\’ AND SaleDate
B. WHERE cast(SaleDate as varchar(10)) BETWEEN \\’2017-01-01\\’ AND \\’2017-12-31\\’
C. WHERE cast(SaleDate as date) BETWEEN \\’2017-01-01\\’ AND \\’2017-12-31\\’
D. WHERE 2017 = year(SaleDate)
Correct Answer: C
References: https://docs.microsoft.com/en-us/sql/t-sql/queries/select-transact-sql?view=sql-server-2017

 

QUESTION 10
DRAG DROP You need to create a stored procedure that meets the following requirements: Produces a warning if the
credit limit parameter is greater than 7,000 Propagates all unexpected errors to the calling process How should you
complete the Transact-SQL statement? To answer, drag the appropriate Transact-SQL segments to the correct
locations. Each Transact-SQL segments may be used once, more than once, or not at all. You may need to drag the
split bar between panes or scroll to view content.
Select and Place:lead4pass 70-761 exam question q10

Correct Answer:

lead4pass 70-761 exam question q10-1

Box 1: THROW 51000, \\’Warning: Credit limit is over 7,000!”,1
THROW raises an exception and transfers execution to a CATCH block of a TRY…CATCH construct in SQL Server.
THROW syntax:
THROW [ { error_number | @local_variable },
{ message | @local_variable },
{ state | @local_variable } ]
[ ; ]
Box2: RAISERROR (@ErrorMessage, 16,1)
RAISERROR generates an error message and initiates error processing for the session. RAISERROR can either
reference a user-defined message stored in the sys.messages catalog view or build a message dynamically. The
message is
returned as a server error message to the calling application or to an associated CATCH block of a TRY…CATCH
construct. New applications should use THROW instead.
Severity levels from 0 through 18 can be specified by any user. Severity levels from 19through 25 can only be specified
by members of the sysadmin fixed server role or users with ALTER TRACE permissions. For severity levels from 19
through 25, the WITH LOG option is required.
On Severity level 16. Using THROW to raise an exception
The following example shows how to use the THROW statement to raise an exception.
Transact-SQL
THROW 51000, \\’The record does not exist.\\’, 1;
Here is the result set.
Msg 51000, Level 16, State 1, Line 1
The record does not exist.
Note: RAISERROR syntax:
RAISERROR( { msg_id | msg_str | @local_variable }
{ ,severity ,state }
[ ,argument [ ,…n ] ] )
[ WITH option [ ,…n ] ]
Note: The ERROR_MESSAGE function returns the message text of the error that caused the CATCH block of a
TRY…CATCH construct to be run.
References:
https://msdn.microsoft.com/en-us/library/ms178592.aspx
https://msdn.microsoft.com/en-us/library/ms190358.aspx
https://msdn.microsoft.com/en-us/library/ee677615.aspx

 

QUESTION 11
You develop and deploy a project management application. The application uses a Microsoft SQL Server database to
store data. You are developing a software bug tracking add-on for the application. The add-on must meet the following
requirements:
Allow case sensitive searches for product.
Filter search results based on exact text in the description.
Support multibyte Unicode characters.
You run the following Transact-SQL statement:lead4pass 70-761 exam question q11

You need to ensure that users can perform searches of descriptions. Which Transact-SQL statement should you run?

lead4pass 70-761 exam question q11-1

A. B. C. D.
Correct Answer: D
References: https://docs.microsoft.com/en-us/sql/t-sql/queries/contains-transact-sql?view=sql-server-2017

 

QUESTION 12
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains
a unique solution that might meet the stated goals. Some question sets might have more than one correct solution,
while
others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not
appear in the review screen.
You are creating indexes in a data warehouse.
You have a dimension table named Table1 that has 10,000 rows. The rows are used to generate several reports.
The reports join a column that is the primary key.
The execution plan contains bookmark lookups for Table1.
You discover that the reports run slower than expected.
You need to reduce the amount of time it takes to run the reports.
Solution: You create a nonclustered index on the primary key column that does NOT include columns.
Does this meet the goal?
A. Yes
B. No
Correct Answer: A
References: https://docs.microsoft.com/en-us/sql/relational-databases/indexes/clustered-and-nonclustered-indexes-described?view=sql-server-2017

 

QUESTION 13
HOTSPOT
You have two tables as shown in the following image:lead4pass 70-761 exam question q13

You need to analyze the following query. (Line numbers are included for reference only.)

lead4pass 70-761 exam question q13-1

Use the drop-down menus to select the answer choice that completes each statement based on the information
presented in the graphic. NOTE: Each correct selection is worth one point.
Hot Area:

lead4pass 70-761 exam question q13-2

Correct Answer: lead4pass 70-761 exam question q13-3

To compare char(5) and nchar(5) an implicit conversion has to take place.
Explicit conversions use the CAST or CONVERT functions, as in line number 6. References: https://docs.microsoft.com/en-us/sql/t-sql/data-types/data-type-conversion-database-engine#implicit-and-explicit-conversion

Related 70-761 Popular Exam resources

titlepdf youtube Microsoft lead4pass Lead4Pass Total Questions
Microsoft MCSA lead4pass 70-761 dumps pdf lead4pass 70-761 youtube Exam 70-761: Querying Data with Transact-SQL – Microsoft https://www.leads4pass.com/70-761.html 221 Q&A
lead4pass 70-764 dumps pdf lead4pass 70-764youtube Exam 70-764: Administering a SQL Database Infrastructure https://www.leads4pass.com/70-764.html 445 Q&A
lead4pass 70-765 dumps pdf lead4pass 70-765 youtube Exam 70-765: Provisioning SQL Databases – Microsoft https://www.leads4pass.com/70-765.html 232 Q&A
lead4pass 70-767 dumps pdf lead4pass 70-767 youtube Exam 70-767: Implementing a Data Warehouse using SQL https://www.leads4pass.com/70-767.html 401 Q&A

Lead4Pass Year-round Discount Code

lead4pass coupon

What are the advantages of Lead4pass?

Lead4pass employs the most authoritative exam specialists from Microsoft, Cisco, CompTIA, IBM, EMC, etc. We update exam data throughout the year. Highest pass rate! We have a large user base. We are an industry leader! Choose Lead4Pass to pass the exam with ease!

why lead4pass

Summarize:

It’s not easy to pass the Microsoft 70-761 exam, but with accurate learning materials and proper practice, you can crack the exam with excellent results. Lead4pass provides you with the most relevant learning materials that you can use to help you prepare.

Last Updated on: November 7th, 2019 at 7:20 am, by admin


Written by admin