Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Cumulative Calculation

$
0
0

Hi, 

Not sure if this is possible or not, but can SQL calculate a Cumulative Churn Rate within a table? 

The table I have (Mortgage_Ops) has 5 variables which I think are needed for the calculation:

1. Mortgage_Status

2. Mortgage_Start_Date

3. Mortgage_Year

4. Mortgage_Months_to_Churn

5. Mortgage_Countflag

I am essentially wanting to see at a very high level

Count Mortgage_Status = 'TP'

/

Count Total  Mortgage_Countflag




Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>