exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 6 question 4 discussion

Actual exam question from Microsoft's 70-464
Question #: 4
Topic #: 6
[All 70-464 Questions]

You need to implement a change to usp_ExportOpenings that meets the integration requirements.
What should you modify in usp_ExportOpenings? (Each correct answer presents part of the solution. Choose all that apply?)

  • A. To the end of line 04, add [Opening].
  • B. To the end of line 05, add [Opening! title].
  • C. To line 10, add FOR XML RAW.
  • D. To line 10, add FOR XMLEXPLICIT.
  • E. To line 10, add FOR XML AUTO.
  • F. To the end of line 04, add [Opening!ELEMENT].
  • G. To the end of line 06, add [Opening!salary!ELEMENT].
  • H. To the end of line 05, add [Opening!title!ELEMENT].
  • I. To the end of line 06, add [Opening! salary].
Show Suggested Answer Hide Answer
Suggested Answer: ABEI 🗳️
The AUTO mode generates nesting in the resulting XML by using heuristics based on the way the SELECT statement is specified. You have minimal control over the shape of the XML generated. The nested FOR XML queries can be written to generate XML hierarchy beyond the XML shape that is generated by AUTO mode heuristics.

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
LiamLin
3 years, 9 months ago
SELECT FirstName AS [Opening/@FirstName], LastName AS [Opening/@LastName], Title AS [Opening] FROM Person.Person WHERE FirstName = 'Gustavo' FOR XML PATH (''); SELECT 1 AS Tag, NULL AS Parent, Title AS [Opening!1!], FirstName AS [Opening!1!FirstName], LastName AS [Opening!1!LastName] FROM Person.Person WHERE FirstName = 'Gustavo' FOR XML EXPLICIT
upvoted 1 times
...
LiamLin
3 years, 9 months ago
This is the result :D SELECT Title AS [Opening], FirstName AS [Opening!FirstName], LastName AS [Opening!LastName] FROM Person.Person WHERE FirstName = 'Gustavo' FOR XML AUTO <Person.Person Opening="Mr." Opening_x0021_FirstName="Gustavo" Opening_x0021_LastName="Achong" /> <Person.Person Opening="Sr." Opening_x0021_FirstName="Gustavo" Opening_x0021_LastName="Camargo" />
upvoted 1 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 ...