P
Paras Shah
Need assistance in automating the process of defining quartiles in a query.
What I mean by that is separating data into 4 groups based on the the value
of a single field. Please see example below:
Project No Score
13 8
478 10
563 2
576 19
213 32
431 1
143 23
245 14
I would like a query that will generate 4 new queries/ tables for each
quartile. So in this simple case of 8 records each new query/table should
have 2 records each, as such
Top Quartile
Project No Score
431 1
563 2
Middle-1 Quartile
Project No Score
13 8
478 10
Middle-2 Quartile
Project No Score
245 14
576 19
Bottom Quartile Score
143 23
213 32
Of course the source table will have records added to it on a regular basis
and hence I would like these quartiles to be dynamically generated - so 4
new queries is better than 4 new tables.
This one has really stumped me and all help is very much appreciated.
Thanks a ton.
-Paras
What I mean by that is separating data into 4 groups based on the the value
of a single field. Please see example below:
Project No Score
13 8
478 10
563 2
576 19
213 32
431 1
143 23
245 14
I would like a query that will generate 4 new queries/ tables for each
quartile. So in this simple case of 8 records each new query/table should
have 2 records each, as such
Top Quartile
Project No Score
431 1
563 2
Middle-1 Quartile
Project No Score
13 8
478 10
Middle-2 Quartile
Project No Score
245 14
576 19
Bottom Quartile Score
143 23
213 32
Of course the source table will have records added to it on a regular basis
and hence I would like these quartiles to be dynamically generated - so 4
new queries is better than 4 new tables.
This one has really stumped me and all help is very much appreciated.
Thanks a ton.
-Paras