IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Multiplication In SQL Query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sahana.chandan.gupta

New User


Joined: 05 Dec 2007
Posts: 10
Location: Mysore

PostPosted: Thu Feb 28, 2008 3:34 pm
Reply with quote

Hi.. Is it possible to mutliply 2 numbers in a SQL Query.. If it is true.. Can u please Expalin it with example
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Thu Feb 28, 2008 3:54 pm
Reply with quote

I thought of these.
Code:
SELECT 12*12 FROM SYSIBM.SYSDUMMY1;

Code:
SELECT <Col1> * <Col2> AS MULTIPLE FROM <Tab1>;

Here Col1, Col2 are numeric in nature.
Back to top
View user's profile Send private message
sahana.chandan.gupta

New User


Joined: 05 Dec 2007
Posts: 10
Location: Mysore

PostPosted: Thu Feb 28, 2008 4:01 pm
Reply with quote

ok thank u very much
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top