postgresql7.3
select grade_plural_name,
grade_name,
weight as grade_weight,
grade_item_id
from evaluation_grades where grade_id = :grade_id
select content_revision__get_content(et.revision_id) as content,
et.title,
et.item_id,
et.mime_type,
cri.storage_type
from evaluation_tasksi et, cr_items cri
where et.task_id = :task_id
and et.item_id = cri.item_id
select et.task_name, et.description, to_char(et.due_date,'YYYY-MM-DD HH24:MI:SS') as due_date_ansi,
et.weight, et.number_of_members, et.online_p, et.late_submit_p, et.requires_grade_p
from evaluation_tasksi et
where task_id = :task_id
select to_timestamp('[template::util::date::get_property linear_date $due_date]','YYYY MM DD HH24 MI SS') from dual
update cr_revisions
set lob = [set __lob_id [db_string get_lob_id "select empty_lob()"]]
where revision_id = :revision_id
update cr_revisions
set content = :url
where revision_id = :revision_id
update cr_revisions
set content_length = :content_length
where revision_id = :revision_id
select content_revision__content_copy(:task_id,:revision_id)
select count(*)
from dotlrn_communities_all,
dotlrn_member_rels_approved,
dotlrn_classes
where dotlrn_communities_all.community_id = dotlrn_member_rels_approved.community_id
and dotlrn_communities_all.community_type = dotlrn_classes.class_key
and dotlrn_member_rels_approved.user_id = :user_id
and acs_permission__permission_p(dotlrn_communities_all.community_id, :user_id, 'admin') = true
and dotlrn_communities_all.community_id <> [dotlrn_community::get_community_id]