exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 129 discussion

Actual exam question from Microsoft's 70-761
Question #: 129
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 database that contains a single table named tblVehicleRegistration. The table is defined as follows:

You run the following query:

The query output window displays the following error message: "Conversion failed when converting the varchar value "˜AB012' to data type int."
You need to resolve the error.
Solution: You modify the Transact-SQL statement as follows:

Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Dieter
Highly Voted 5 years, 10 months ago
the correct answer shouuld be A since the int is implicitey casted by the ' '.
upvoted 25 times
...
okh
Highly Voted 5 years, 9 months ago
the correct answer is A
upvoted 17 times
...
Angelcr
Most Recent 4 years, 5 months ago
The answer to these questions is confusing since the message says that it cannot convert from a varchar to an INT type, that operation is not being done at any time during the query, so the answers would be NO. it's confusing.
upvoted 1 times
...
Skc20
4 years, 6 months ago
Tested.. It's A the CORRECT answer.
upvoted 1 times
...
jacenty
4 years, 8 months ago
Who give answers in this web ??? B -----------XD
upvoted 1 times
...
chaoxes
4 years, 11 months ago
Correct answer is A.Yes, tested it. create table tblvehicleregistration (vehicleid int identity(1,1) ,registrationnumber varchar(5) ,registrationdate date ,userid int ) select * from tblvehicleregistration insert into tblvehicleregistration values ('20012', getdate(), '1') select userid from tblvehicleregistration where registrationnumber = '20012' and registrationdate > '2016-01-01'
upvoted 2 times
...
Anette
5 years, 1 month ago
its A. Tested
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 ...