catpad: (Default)
[personal profile] catpad

Можете смеяться, но в догонку предыдущему посту я написал запрос для получения 100 самых средних файлов.



select * from [table_name] where rowid in
      (select rowid from
            (select rowid from [table_name] order by [file_size_column])
      where
       rownum >= NVL((select count(*) from [table_name]),0)/2-50
       and
       rownum <= NVL((select count(*) from [table_name]),0)/2+50
      );

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
Page generated Feb. 6th, 2026 02:26 pm
Powered by Dreamwidth Studios