Solved

Financial functions

Posted on 2013-02-06
2
289 Views
Last Modified: 2013-02-06
I'm currently using EXP(SUM(LOG(field))) like a PRODUCT function. I need to take the number of the query to a power. The actual tsql is:

EXP(SUM(LOG(LOAD_Performance_Peers.CALC_Performance)))-1

I need to take the result to the power of 12/60 ( an annualization for 5 years)

POWER(EXP(SUM(LOG(LOAD_Performance_Peers.CALC_Performance))), 12/60)-1

Does not work. Any ideas? Thanks
0
Comment
Question by:mfony
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
virtuadept earned 500 total points
ID: 38861253
Are you getting an error message?

Also what if you change the 12/60 part to 12.0/60.0?  It may be trying to do an integer division there.
0
 

Author Comment

by:mfony
ID: 38861438
Correct about the integer division.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question