A Simple Way of Quantiling Process in T-SQL by using Window Function and Ceiling Function
Quantiling process is very powerful when 2 dimensional of sales data is available, like product sales and market sales. In business it is very common to use quantile matrix to perform the account segmentation.
Window Function
Segmentation