Я думаю, это то, что вы хотите:
create view myview as
select ownername,
count(*) filter (where status = 1) as cnt_status_1,
sum(length) filter (where status = 1) as len_status_1,
count(*) filter (where status = 2) as cnt_status_2,
sum(length) filter (where status = 2) as len_status_2,
. . . -- continue for each status
count(*) as cnt,
sum(length) as length
from mytable
group by ownername;
Вы не можете смешать те плагины: они обрабатывают те же события и не могут сотрудничать вместе. Или заново продумайте свой UI или используйте различные инструменты.
Действительно ли возможно сделать это?Да, конечно. Например, Dojo DnD позволяет и сортировку и перетаскивание, использующее всего один компонент: test_dnd.html (связываются с сервером отладки).
You can do this, sort of.
Create two links in each item to use as handles.
Make the list sortable by one handle.
Make the list draggable by the other handle.
Now, when you grab one handle or the other, only one plugin will be activated, and events will be processed correctly.