10
                  
                  
                       1
                  
                  
                       5
                  
                  
                       3
                  
                  
                       8
                  
                  
                       2
                  
                  
                       7
                  
                  
                  (7 rows)
                  
                  
                  
                  
                  
                  example=# select * from example order by value offset (select count(*) / 2 from example) limit 1;
                  
                  
                   value 
                  
                  
                  -------
                  
                  
                       5
                  
                  
                  (1 row)
                  
                  
                  
                  
                  
                  ? :D
                  
                  
                
Ничего себе решение))) Ща попробую, спасибо!
Обсуждают сегодня