17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A: System Functions<br />

GetRoot<br />

Returns the root of the hierarchy tree.<br />

IsDescendantOf<br />

Returns true if child is a descendant of the item in question.<br />

Parse<br />

Parse converts the canonical string representation of a hierarchyID to a hierarchyID value. Parse is called<br />

implicitly when a conversion from a string type to hierarchyID occurs.<br />

GetReparentedValue<br />

Returns a node whose path from the root is the path to the newRoot, followed by the path from the<br />

oldRoot to the current item.<br />

ToString<br />

The functional equivalent of using a CAST function, this returns a string typed value of the hierarchy<br />

node you apply the function to.<br />

Mathematical Functions<br />

610<br />

The mathematical functions perform calculations. They are:<br />

❑ ABS<br />

❑ ACOS<br />

❑ ASIN<br />

❑ ATAN<br />

❑ ATN2<br />

❑ CEILING<br />

❑ COS<br />

❑ COT<br />

❑ DEGREES<br />

❑ EXP<br />

❑ FLOOR<br />

❑ LOG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!