SUM function on Alphanumeric column in DB2



IBM's flagship relational database management system

SUM function on Alphanumeric column in DB2

Postby Praveen5526 » Sun Apr 22, 2012 11:06 pm

Can we use SUM function on Alphanumeric column in db2?

TITLE EDITED.
Praveen5526
 
Posts: 10
Joined: Sat Apr 21, 2012 6:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SUM function on Alphanumeric column in DB2

 

Re: DB2

Postby enrico-sorichetti » Sun Apr 22, 2012 11:13 pm

using an intelligent title will make people more interested in the questions You might ask
a stupid title will usually make people skip the post!
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: SUM function on Alphanumeric column in DB2

Postby dick scherrer » Mon Apr 23, 2012 8:58 am

Hello,

I suspect a bit of redesign is in order. . .

If the column can contain any non-numeric value(s), it won't sum.

If it can only contain numeric values, it should be defined as numeric :?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to DB2

 


  • Related topics
    Replies
    Views
    Last post