6
6
655202011-12-22 13:01:16
SQL
65520, 2011-12-22 13:01:16

How can a table be compacted by taking the average value for every N records?

There is a table in which there is a counter with step 1 and a column with numerical values. How can a table be compacted by taking the average value for every N records? That is, from every N consecutive records, make one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
65520, 2011-12-22
@65520

Who cares - you need to group by FLOOR (counter / 5).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question