HighTechTalks DotNet Forums  

Summing up numeric values using Oracle or T-SQL query

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss Summing up numeric values using Oracle or T-SQL query in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?ZGVlcGFr?=
 
Posts: n/a

Default Summing up numeric values using Oracle or T-SQL query - 08-06-2007 , 06:32 AM






Hi All,

How to sum up the following numeric numbers in <In Progress> tag using T-Sql
or Oracle
query.There are thousands of tags rows in a column in the table. i need sum
of numeric value present in the <InProgress> tag

e.g. 2 tags shown below
Tag 1:

<S><Unassigned>3</Unassigned><Assigned>1</Assigned><Dispatched>20</Dispatched><Jeopardy-NotAccepted>74</Jeopardy-NotAccepted><Accepted>1073</Accepted><InProgress>6424</InProgress></S>

Tag 2:

<S><Unassigned>5</Unassigned><Assigned>2</Assigned><Dispatched>44</Dispatched><Accepted>33</Accepted><InProgress>22</InProgress></S>

Note :There are thousands of tags rows in a column in the table


Thanks,
Deepak
MCPD.NET
kr_deepak123 (AT) hotmail (DOT) com


Reply With Quote
  #2  
Old   
=?Utf-8?B?ZGVlcGFr?=
 
Posts: n/a

Default Summing up numeric values using Oracle or T-SQL query - 08-06-2007 , 07:04 AM






Also, the <InProgress> tag can be on any place like

Tag 1:

<S><Unassigned>3</Unassigned><Assigned>1</Assigned><Dispatched>20</Dispatched><Jeopardy-NotAccepted>74</Jeopardy-NotAccepted><Accepted>1073</Accepted><InProgress>6424</InProgress></S>

Tag 2:

<S><Unassigned>3</Unassigned><Assigned>1</Assigned><Accepted>1073</Accepted><InProgress>6424</InProgress></S>


"deepak" wrote:

Quote:
Hi All,

How to sum up the following numeric numbers in <In Progress> tag using T-Sql
or Oracle
query.There are thousands of tags rows in a column in the table. i need sum
of numeric value present in the <InProgress> tag

e.g. 2 tags shown below
Tag 1:

S><Unassigned>3</Unassigned><Assigned>1</Assigned><Dispatched>20</Dispatched><Jeopardy-NotAccepted>74</Jeopardy-NotAccepted><Accepted>1073</Accepted><InProgress>6424</InProgress></S

Tag 2:

S><Unassigned>5</Unassigned><Assigned>2</Assigned><Dispatched>44</Dispatched><Accepted>33</Accepted><InProgress>22</InProgress></S

Note :There are thousands of tags rows in a column in the table


Thanks,
Deepak
MCPD.NET
kr_deepak123 (AT) hotmail (DOT) com


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.