Free Microsoft 070-761 Exam Dumps Questions & Answers
| Exam Code/Number: | 070-761Join the discussion |
| Exam Name: | Querying Data with Transact-SQL |
| Certification: | Microsoft |
| Free Question Number: | 205 |
| Publish Date: | Sep 25, 2026 |
| # of views: | 4019 |
|
|
|
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 have a table that was created by running the following Transact-SQL statement:
The Products table includes the data shown in the following table:
TotalUnitPrice is calculated by using the following formula:
TotalUnitPrice = UnitPrice * (UnitsInStock + UnitsOnOrder)
You need to ensure that the value returned for TotalUnitPrice for ProductB is equal to 600.00.
Solution: You run the following Transact-SQL statement:
Does the solution meet the goal?
You need to create a database object that meets the following requirements:
* accepts a product identifies as input
* calculates the total quantity of a specific product, including quantity on hand and quantity on order
* caches and reuses execution plan
* returns a value
* can be called from within a SELECT statement
* can be used in a JOIN clause
What should you create?
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.
A database has two tables as shown in the following database diagram:
You need to list all provinces that have at least two large cities. A large city is defined as having a population of at least one million residents. The query must return the following columns:
Solution: You run the following Transact-SQL statement:
Does the solution meet the goal?
You have a database named MyDb. You run the following Transact-SQL statements:
A value of 1 in the IsActive column indicates that a user is active.
You need to create a count for active users in each role. If a role has no active users. you must display a zero as the active users count.
Which Transact-SQL statement should you run?
You create a table named Sales.Categories by running the following Transact-SQL statement:
You add the following data to the table.
You need to create a query that uses a common table expression (CTE) to show the parent category of each category. The query must meet the following requirements:
* Return all columns from the Categories table in the order shown.
* Exclude all categories that do not have a parent category.
Construct the query using the following guidelines:
* Name the expression ParentCategories.
* Use PC as the alias for the expression.
* Use C as the alias for the Categories table.
* Use the AS keyword for all table aliases.
* Use individual column names for each column that the query returns.
* Do not use a prefix for any column name.
* 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. You may check syntax as many times as needed.
| 070-761 Dumps Other Version | QA's | Publish Date |
| Microsoft.070-761.v2022-04-28.q180 | 180 | Apr 28, 2022 |