Say I have following xml
<Operations>
<Info Id="2265" cId="2" aId="5" />
<Info Id="2266" cId="2" aId="5" />
<Info Id="2266" cId="2" aId="6" />
<Info Id="2267" cId="2" aId="5" />
<Info Id="2267" cId="2" aId="6" />
</Operations>
Without inserting the values into table by allocating extra space I want to count the number of nodes with distinct value on attributes cId
and aId
.
Currently I am doing it by inserting the same into table, but the data is very large and is taking a lot of temp space during execution.
Is there any way?
Expected output for above would be 3