Solved

Financial functions

Posted on 2013-02-06
2
288 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Freeze portion of datamart 2 21
Star schema daily updates 2 34
Linked Server - SP with Param to VIew 7 21
Finding Where Clause Value in SQL Views and SP 21 34
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

735 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