Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Percentile excel formula in SQL

$
0
0

Hi Friends,

 I want to do percentile function of excel in sql but I'm unable to do it. Below link shows the working of percentile function in excel

http://office.microsoft.com/en-us/excel-help/percentile-HP005209211.aspx

I want to achieve the same in sql. Any help is highly appreciated. Also attaching table script for ease.

Create Table #temp(
A int
)
insert into #temp values (1)
insert into #temp values (3)
insert into #temp values (2)
insert into #temp values (4)
Thanks.


Viewing all articles
Browse latest Browse all 23857

Trending Articles