exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 88 discussion

Actual exam question from Microsoft's 70-761
Question #: 88
Topic #: 1
[All 70-761 Questions]

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?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The NULL value in the UnitsOnOrder field would cause a runtime error.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Vanesa30
Highly Voted 5 years, 1 month ago
No, becasue NULL values cannot for for addition, subtraction, multiplication or any other type of formula, the output would give always NULL
upvoted 7 times
Martiniis
4 years, 10 months ago
That is true. It won't cause an error as it is mentioned, but you would get NULL as a result.
upvoted 4 times
BabyBee
4 years, 5 months ago
SELECT 30 * (20 + NULL) AS TotalUnitPrice; --Result: NULL
upvoted 1 times
...
...
...
shumba1993
Most Recent 4 years, 10 months ago
B. No. TotalUnitPrice = UnitPrice * (UnitsInStock + NULL). TotalUnitPrice = UnitPrice * (NULL). TotalUnitPrice = NULL
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago