adplus-dvertising
frame-decoration

Question

Which of the following is invalid code associated with hierarchical data type?

a.

CREATE TABLE H (
Node HierarchyID PRIMARY KEY CLUSTERED,
NodeLevel AS Node.GetLevel(),
ID INT UNIQUE NOT NULL,
Name VARCHAR(50) NOT NULL
)

b.

CREATE TABLE H (
Node HierarchyID PRIMARY KEY NON CLUSTERED,
NodeLevel AS Node.GetLevel(),
ID INT UNIQUE NOT NULL,
Name VARCHAR(50) NOT NULL
)

c.

CREATE TABLE H (
Node HierarchyID FOREIGN KEY CLUSTERED,
NodeLevel AS Node.GetLevel(),
ID INT UNIQUE NOT NULL,
Name VARCHAR(50) NOT NULL
)

d.

All of the Mentioned

Posted under SQL Server

Answer: (c).CREATE TABLE H (
Node HierarchyID FOREIGN KEY CLUSTERED,
NodeLevel AS Node.GetLevel(),
ID INT UNIQUE NOT NULL,
Name VARCHAR(50) NOT NULL
)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is invalid code associated with hierarchical data type?

Similar Questions

Discover Related MCQs

Q. Which of the following code is used to have a Breadth First index?

Q. Point out the wrong statement.

Q. Which of the code deletes node H using hierarchical data type?

Q. Which of the following code will not throw an error?

Q. Which of the reasons will force you to use XML data model in SQL Server?

Q. Which of the following is not a XML storage option?

Q. The choice of XML technology, native XML versus XML view, generally depends upon the following factors?

Q. In which of the following scenario, using XML native storage would be inappropriate?

Q. XML View Technology is useful in the following situations?

Q. What is the hybrid model in SQL Server?

Q. Reasons to use native XML features in SQL Server instead of managing your XML data in the file system would be:

Q. Which of the following part of the XML data stored in an XML column is very important for locking?

Q. XML datatype was introduced in which of the following versions of SQL Server?

Q. Which of the following feature of SQL Server was used before XML technology for semi structured data?

Q. What are Catalog Views for XML?

Q. Which of the following following is used for retrieving XML Schema Collections?

Q. What is index type for XML index entries?

Q. The space use of XML indexes can be found in the table-valued function named?

Q. Contents of sys.xml_schema_collections are _____________

Q. Which of the following statement would import additional schema or schema components into an existing collection object?