select first_names,
last_name,
email,
to_char(creation_date, 'YYYY-MM-DD HH24:MI:SS') as registration_date,
to_char(last_visit, 'YYYY-MM-DD HH24:MI:SS') as last_visit
from cc_users
where user_id = :oneUser
select f.community_key as key,
f.community_id as id,
f.pretty_name as pretty_name,
to_char(o.creation_date, 'YYYY-MM-DD HH24:MI:SS') as creation_date
from dotlrn_communities_full f, acs_objects o
where f.community_id= :oneCom
and o.object_id= f.community_id
select count(distinct ans.entry_id)
from faq_q_and_as ans, faqs f, dotlrn_communities com, acs_objects o
where o.object_id = f.faq_id
and ans.faq_id=f.faq_id
and o.creation_user= :oneUser
and com.community_id= :oneCom
and apm_package__parent_id(o.context_id) = com.package_id
select count (distinct forums_messages.message_id)
from forums_forums_enabled ff,
acs_objects o, forums_messages fm, dotlrn_communities com
where o.object_id = fm.message_id
and fm.forum_id=ff.forum_id
and apm_package__parent_id(ff.package_id) = com.package_id
and com.community_id= :oneCom
and o.creation_user = :oneUser
SELECT count(1) as result
FROM fs_files f,dotlrn_communities_full com,acs_objects o, acs_objects o2
WHERE f.file_id = o.object_id
and com.community_id=:comm_id
and o.package_id= o2.object_id
and o2.context_id=com.package_id
select count(distinct forums.forum_id)
from forums_forums_enabled forums, dotlrn_communities com,
acs_objects o
where com.community_id= :oneCom
and apm_package__parent_id(forums.package_id) = com.package_id
and forums.forum_id = o.object_id and
o.creation_user = :oneUser
select count(s.survey_id)
from surveys s, dotlrn_communities com, acs_objects o
where com.community_id=:oneCom
and apm_package__parent_id(s.package_id) = com.package_id
and o.object_id=s.survey_id
and o.creation_user = :oneUser
select count(n.item_id)
from news_items_approved n, dotlrn_communities com
where com.community_id= :oneCom
and apm_package__parent_id(n.package_id) = com.package_id
and n.creation_user= :oneUser
select count(distinct forums.forum_id)
from forums_forums_enabled forums
select count(distinct f.faq_id)
from faqs f
select count(distinct n.item_id)
from news_items_approved n
select count(distinct s.survey_id)
from surveys s
select distinct package_key from apm_packages where package_key= :package_key
select count(*)
from acs_objects
where object_type= :object_type
select count(*)
from acs_objects
where creation_user = :oneUser
and object_type= :object_type
select count(ans.question)
from faq_q_and_as ans, faqs f, acs_objects o
where o.object_id=ans.entry_id
and ans.faq_id=f.faq_id
and o.creation_user= :oneUser
select count(news_items_approved.publish_title)
from news_items_approved
where news_items_approved.creation_user= :oneUser
select count(distinct forums.forum_id)
from forums_forums_enabled forums, dotlrn_communities com
where com.community_id= :oneCom
and apm_package__parent_id(forums.package_id) = com.package_id
select count (distinct forums_messages.message_id)
from forums_forums_enabled,
acs_objects, forums_messages, dotlrn_communities com
where acs_objects.object_id = forums_messages.message_id
and forums_messages.forum_id=forums_forums.forum_id
and apm_package__parent_id(forums_forums.package_id) = com.package_id
and com.community_id= :oneCom
select count(distinct f.faq_id)
from faqs f, dotlrn_communities com, acs_objects o
where com.community_id= :oneCom
and o.object_id=f.faq_id
and apm_package__parent_id(o.context_id) = com.package_id
select count(n.item_id)
from news_items_approved n, dotlrn_communities com
where com.community_id= :oneCom
and apm_package__parent_id(n.package_id) = com.package_id
select count(s.survey_id)
from surveys s, dotlrn_communities com
where com.community_id= :oneCom
and apm_package__parent_id(s.package_id) = com.package_id
select count(*) from acs_objects o, fs_files f, acs_objects o2, dotlrn_communities_full com
where f.file_id=o.object_id
and com.community_id= :oneCom
and o.package_id= o2.object_id
and o2.context_id=com.package_id