GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Database  >  Sybase

 Print  |  
Question:  how to multiply all values of a single column.



August 08, 2008 01:10:05 #1
 vishnu7185   Member Since: August 2008    Total Comments: 1 

RE: how to multiply all values of a single column.
 
Can be done Using Cursors

DECLARE  @product int

DECLARE crsr CURSOR FOR (all values)

SELECT @product = @product * @crsr_value

fetch CURSOR
     

 

Back To Question