S
STA
Hi.
Given this XML:
<itemdata>
<item>
<itemid>10</itemid>
<ctid>1</ctid>
</item>
<item>
<itemid>11</itemid>
<ctid>2</ctid>
</item>
<item>
<itemid>12</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>13</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>14</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>15</itemid>
<ctid>4</ctid>
</item>
<item>
<itemid>16</itemid>
<ctid>4</ctid>
</item>
</itemdata>
How can I find the ctid that occurs the most times? In this sample, I'm
looking for a result of "3", because there are 3 items where ctid=3,
and the next closest (4) only has 2 occurrences.
Thanks in advance for any help.
STA
Given this XML:
<itemdata>
<item>
<itemid>10</itemid>
<ctid>1</ctid>
</item>
<item>
<itemid>11</itemid>
<ctid>2</ctid>
</item>
<item>
<itemid>12</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>13</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>14</itemid>
<ctid>3</ctid>
</item>
<item>
<itemid>15</itemid>
<ctid>4</ctid>
</item>
<item>
<itemid>16</itemid>
<ctid>4</ctid>
</item>
</itemdata>
How can I find the ctid that occurs the most times? In this sample, I'm
looking for a result of "3", because there are 3 items where ctid=3,
and the next closest (4) only has 2 occurrences.
Thanks in advance for any help.
STA