Study Querying Data with Transact-SQL 70-761 exam questions online

Exam 70-761 SQL Server is hot for the Microsoft candidates who will take 70-761 exam test. Clear your Querying Data with Transact-SQL 70-761 exam test is not a problem now. You can select the Microsoft MCSA 70-761 dumps questions to practice freely.

Study Querying Data with Transact-SQL 70-761 exam questions online now.

1. You create a table named Customer by running the following Transact-SQL statement:

You must insert the following data into the Customer table:

You need to ensure that both records are inserted or neither record is inserted.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

2. You create a table named Customer by running the following Transact-SQL statement:

You must insert the following data into the Customer table:

You need to ensure that both records are inserted or neither record is inserted.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

3. You create a table named Customer by running the following Transact-SQL statement:

You must insert the following data into the Customer table:

You need to ensure that both records are inserted or neither record is inserted.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

4. You have a database that tracks orders and deliveries for customers in North America.

The database contains the following tables:

Application. Cities

Sales. CustomerCategories

The company's development team is designing a customer directory application. The application must list customers by the area code of their phone number. The area code is defined as the first three characters of the phone number.

The main page of the application will be based on an indexed view that contains the area and phone number for all customers.

You need to return the area code from the PhoneNumber field.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

5. You have a database that tracks orders and deliveries for customers in North America.

The database contains the following tables:

Application. Cities

Sales. CustomerCatagories

The company's development team is designing a customer directory application. The application must list customers by the area code of their phone number. The area code is defined as the first three characters of the phone number.

The main page of the application will be based on an indexed view that contains the area and phone number for all customers.

You need to return the area code from the PhoneNumber field.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

6. You have a database that tracks orders and deliveries for customers in North America.

The database contains the following tables:

Application. Cities

Sales. CustomerCatagories

The company's development team is designing a customer directory application. The application must list customers by the area code of their phone number. The area code is defined as the first three characters of the phone number.

The main page of the application will be based on an indexed view that contains the area and phone number for all customers.

You need to return the area code from the PhoneNumber field.

Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

7. You query a database that includes two tables: Project and Task.

The Project table includes the following columns:

You plan to run the following query to update tasks that are not yet started:

You need to return the total count of tasks that are impacted by this UPDATE operation, but are not associated with a project.

What set of Transact-SQL statements should you run?

8. HOTSPOT

You query a database that includes two tables: Project and Task.

The Project table includes the following columns:

You need to identify the owner of each task by using the following rules:

- Return each task's owner if the task has an owner.

- If a task has no owner, but is associated with a project that has an owner, return the project's owner.

- Return the value -1 for all other cases.

How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.

9. DRAG DROP

You query a database that includes two tables: Project and Task.

The Project table includes the following columns:

Task level is defined using the following rules:

You need to determine the task level for each task in the hierarchy.

Which five 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.

10. DRAG DROP

You query a database that includes two tables: Project and Task.

The Project table includes the following columns:

When running an operation, you updated a column named EndTime for several records in the Project table, but updates to the corresponding task records in the Task table failed.

You need to synchronize the value of the End Time column in the Task table with the value of the EndTime column in the project table.

The solution must meet the following requirements:

- If the End Time column has a value, make no changes to the record.

- If the value of the EndTime column is null and the corresponding project record is marked as completed, update the record with the project finish time.

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.

11. 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-SQP 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.

12. HOTSPOT

You have the following stored procedure:

You run the following Transact-SQL statements:

What is the result of each Transact-SQL statement? To answer, select the appropriate options in the answer area.

13. HOTSPOT

You need to develop a Transact-SQL statement that meets the following requirements:

- The statement must return a custom error when there are problems updating a table.

- The error number must be value 50555.

- The error severity level must be 14.

- A Microsoft SQL Server alert must be triggered when the error condition occurs.

Which Transact-SQL segment should you use for each requirement? To answer, select the appropriate Transact-SQL segments in the answer area.

14. DRAG DROP

You need to create a stored procedure to update a table named Sales.Customers.

The structure of the table is shown in the exhibit. (Click the exhibit button.)

The stored procedure must meet the following requirements:

- Accept two input parameters.

- Update the company name if the customer exists.

- Return a custom error message if the customer does not exist.

Which five 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.

NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

15. You need to create an indexed view that requires logic statements to manipulate the data that the view displays.

Which two database objects should you use? Each correct answer presents a complete solution.

16. DRAG DROP

You have two tables named UserLogin and Employee respectively.

You need to create a Transact-SQL script that meets the following requirements:

- The script must update the value of the IsDeleted column for the UserLogin table to 1 if the value of the Id column for the User Login table is equal to 1.

- The script must update the value of the IsDeleted column of the Employee table to 1 if the value of the Id column is equal to 1 for the Employee table when an update to the User Login table throws an error.

- The error message "No tables updated!" must be produced when an update to the Employee table throws an error.

Which five 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 answerarea and arrange them in the correct order.

17. CORRECT TEXT

You work for an organization that monitors seismic activity around volcanos. You have a table named GroundSensors. The table stored data collected from seismic sensors.

It includes the columns describes in the following table:

The database also contains a scalar value function named NearestMountain that returns the name of the mountain that is nearest to the sensor.

You need to create a query that shows the average of the normalized readings from the sensors for each mountain.

The query must meet the following requirements:

- Include the average normalized readings and nearest mountain name.

- Exclude sensors for which no normalized reading exists.

- Exclude those sensors with value of zero for tremor.

Construct the query using the following guidelines:

- Use one part names to reference tables, columns and functions.

- Do not use parentheses unless required.

- Do not use aliases for column names and table names.

- 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.

Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.

18. DRAG DROP

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.

19. 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.

20. DRAG DROP

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.


 

 

 

MCSA 70-765 Provisioning SQL Databases exam questions material
70-742 Identity with Windows Server 2016 exam questions online
2 Comments

Add a Comment

Your email address will not be published. Required fields are marked *