Multiple choice technology databases

Given the following table and XML data stored in the EMPDETAILS column: CREATE TABLE employees (Emp-id INT PRIMARY KEY NOT NULL, Emp-name VARCHAR (20), Empdetails XML) The data in the EMPDETAILS are ProjectManager Chennai 987654 What is the result of the following XQuery Expression? For $y in db2-fn:xmlcolumn(EMPLOYEES. EMPDETAILS’)/Employee/designation return $y

  1. <designation>ProjectManager</designation>

  2. ProjectManager

  3. chennai

  4. <pincode>987654</pincode>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The XQuery expression uses db2-fn:xmlcolumn to access the EMPDETAILS column and navigates to the designation element within the Employee/Details hierarchy. The expression returns the complete element including its tags, not just the text content. The result is 'ProjectManager' which includes the XML tags. Option B only returns the text content without tags. Option C is incorrect - Chennai is the working-place content, not designation. Option D is incorrect - pincode is a different element in the XML structure.