So I have an XQuery that looks something like this:
for $i in /*:rootElement
where $i/*:field = "test"
return $i
This query returns a lot of results, but I only really need one. How can I return just the first item in the result sequence?
So I have an XQuery that looks something like this:
for $i in /*:rootElement
where $i/*:field = "test"
return $i
This query returns a lot of results, but I only really need one. How can I return just the first item in the result sequence?