SQL QUERY-
select d.row_wid, d.x_hhold_num, deposits_end_bal
from w_household_d d, wc_hhold_balhstry_f f
where d.row_wid = f.household_wid
order by deposits_end_bal desc
QUESTION
The above query generates a list of all the customers in the descending order of amount they have in their accounts.
It generates a list of roughly 300000 customers.
How do I group this list which comes up in descending order, into groups of 30000( 30 k) each??
Thanks in advance
select d.row_wid, d.x_hhold_num, deposits_end_bal
from w_household_d d, wc_hhold_balhstry_f f
where d.row_wid = f.household_wid
order by deposits_end_bal desc
QUESTION
The above query generates a list of all the customers in the descending order of amount they have in their accounts.
It generates a list of roughly 300000 customers.
How do I group this list which comes up in descending order, into groups of 30000( 30 k) each??
Thanks in advance