You have a table named Sales.SalesOrderHeader and a table named Person.Person.
You are tasked to write a query that returns SalesOrderID and SalesPersonName that have an OrderDate
greater than 20040101. SalesPersonName should be made up by concatenating the columns named
FirstName and LastName from the table named Person.Person.
You need to write a query to return data, sorted in alphabetical order, by the concatenation of FirstName and
LastName. Which Transact-SQL statement should you use?
You have two tables named Customer and SalesOrder. In the Customer table you have 1000 customers, of
which 900 customers have orders in the SalesOrder table.
You execute the following query to list all customers that have had at least one sale.
SELECT * FROM Customer WHERE Customer.CustomerID IN (SELECT SalesOrder.CustomerID FROM
SalesOrder)
You need to identify the results of the query. Which results will the query return?
You attempt to query sys.dm_db_index_usage_stats to check the status on the indexes in the Contoso
database. The query fails and you receive the following error:
"The user does not have permission to perform this action."
You need to have the least amount of permissions granted to access the dynamic management views.
Which permissions should be granted?
You have created an assembly that utilizes unmanaged code to access external resources. You need to deploy
the assembly with the appropriate permissions.
Which permission set should you use?