How to use distinct-values operation in Function on sequence Using XPath in Xml

In this article I will explain distinct-values operation of function on sequence.
  • 2041

Introduction

The distinct-values operation of Function on sequence can be used to return the different or distinct values.It does not provide the same data that is repeated that means only the different values are displayed by using this function.

Syntax

distinct-values ((item,item,item,item),collation)

Example

distinct-values ((11,12,13,14,15,12,13,11))
distinct-values (("ab","cd","ef","ab","pq","ef"))
distinct-values ((1,2,3,4,5))

Output

(11,12,13,14,15)
("ab","cd","ef","pq")
(1,2,3,4,5)

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.