declare
begin
end;
update dotlrn_community_types set package_id= :package_id where community_type= :community_type
update dotlrn_communities set package_id= :package_id where community_id= :community_id
select node_id from site_nodes where object_id= (select package_id from dotlrn_community_types where community_type= :community_type)
select segment_id from rel_segments where group_id= :community_id and rel_type= :rel_type
select rel_id, rel_type, users.user_id, first_names, last_name, email from registered_users users, dotlrn_member_rels_full where community_id= :community_id and users.user_id = dotlrn_member_rels_full.user_id order by rel_type
select count(*) from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
select rel_id, portal_id from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
select portal_id from dotlrn_member_rels_full where community_id= :community_id and user_id= :user_id
select portal_id from dotlrn_communities where community_id= :community_id
select dotlrn_communities.community_id, community_type, community_key, pretty_name from dotlrn_communities, dotlrn_member_rels_full where dotlrn_communities.community_id = dotlrn_member_rels_full.community_id and dotlrn_member_rels_full.user_id = :user_id
select dotlrn_communities.community_id as community_id, community_type, pretty_name, description, package_id
from dotlrn_communities, dotlrn_member_rels_full
where community_type= :community_type
and user_id= :user_id
and dotlrn_communities.community_id = dotlrn_member_rels_full.community_id
select community_id, community_type, pretty_name, description, package_id
from dotlrn_active_not_closed_comms
where community_type= :community_type
select community_id, community_type, pretty_name, description, package_id, community_key
from dotlrn_communities
where community_type= :community_type
select community_type from dotlrn_community_types where package_id= :package_id
select community_type from dotlrn_communities where community_id=:community_id
select community_id from dotlrn_communities where package_id= :package_id
select package_id from dotlrn_community_types where community_type= :community_type
select package_id from dotlrn_communities where community_id= :community_id
select package_id from dotlrn_community_applets where community_id= :community_id and applet_key= :applet_key
select pretty_name from dotlrn_community_types where community_type= :community_type
select pretty_name from dotlrn_communities where community_id= :community_id
select portal_template_id from dotlrn_communities where community_id= :community_id
insert into dotlrn_community_applets
(community_id, applet_key, package_id)
values
(:community_id, :applet_key, :package_id)
delete from dotlrn_community_applets where
community_id= :community_id and applet_key= :applet_key
select impl_name from acs_sc_impls, acs_sc_bindings, acs_sc_contracts
where
acs_sc_impls.impl_id = acs_sc_bindings.impl_id and
acs_sc_contracts.contract_id= acs_sc_bindings.contract_id and
acs_sc_contracts.contract_name='dotlrn_applet'
select applet_key from dotlrn_community_applets where community_id= :community_id