postgresql7.3 select evaluation__delete_evaluation_task_group (:group_id) select evaluation__new_evaluation_task_group ( :group_id, :group_name, 'closed', :creation_date, :creation_user, :creation_ip, :context, :task_item_id ); select acs_group__name(:group_id) as group_name select cu.person_id as party_id, cu.last_name||' - '||cu.first_names as party_name, round(ese.grade,2) as grade, ese.description as comments from cc_users cu left outer join evaluation_student_evalsi ese on (ese.party_id = cu.person_id and ese.task_item_id = :task_item_id and content_revision__is_live(ese.evaluation_id) = true) select p.person_id as party_id, p.last_name||' - '||p.first_names as party_name, ese.grade, ese.description as comments from registered_users ru, dotlrn_member_rels_approved app, persons p left outer join evaluation_student_evalsi ese on (ese.party_id = p.person_id and ese.task_item_id = :task_item_id and content_revision__is_live(ese.evaluation_id) = true) where app.community_id = :community_id and app.user_id = ru.user_id and app.user_id = p.person_id and app.role = 'student' select etg.group_id as party_id, g.group_name as party_name, grade, ese.description as comments from groups g, evaluation_task_groups etg left outer join evaluation_student_evalsi ese on (ese.party_id = etg.group_id and ese.task_item_id = :task_item_id and content_revision__is_live(ese.evaluation_id) = true) where etg.task_item_id = :task_item_id and etg.group_id = g.group_id select description as edit_reason, grade as current_grade, evaluation__party_name(party_id,:task_id) as party_name from evaluation_student_evalsi where evaluation_id = :evaluation_id select evaluation__party_name(ea.party_id, et.task_id) as party_name, crr.title as answer_title, crr.revision_id, crr.content as cr_file_name, cri.storage_type, cri.storage_area_key as cr_path from evaluation_answersi ea, cr_revisions crr, evaluation_tasks et, cr_items cri, cr_items cri2 where ea.task_item_id = et.task_item_id and ea.answer_item_id = cri.item_id and crr.revision_id = ea.answer_id and et.task_id = :task_id and ea.data is not null and cri2.live_revision = ea.answer_id and not exists (select 1 from evaluation_student_evals ese, cr_items cri3 where ese.party_id = ea.party_id and ese.task_item_id = et.task_item_id and cri3.live_revision = ese.evaluation_id) select content_revision__get_content(:revision_id) select evaluation__clone_task(:from_task_id,:revision_id)