table one structure {node}:
table two structure {votingapi_vote}:Code:nid type title created 10 provider test one 1298107010 11 provider test two 1298107555 12 provider example one 1300524695 13 provider example two 1298081391 14 provider example three 1298082340 15 company example four 1298083519 16.... company example five 1298083559
i want:Code:content_id value value_type 10 1 option 10 0 option 11 1 option 12 0 option 15 3 percent 15 2 percent 16..... 0 option
get 22 titles list
the queue order is:Code:... test one test two example one example two ...
first according to table 2(i want to use the count value = 1 minus the count value = 0. this is the content_id's descending rule,
then table 1 (desc the nid create time) type is provider.
ps:For each content_id, the number of rows with value=1 minus the number of rows with value=0.. each content_id has many value=0 or value=1



Reply With Quote





Bookmarks