Alex
I can't find anything as long as 30 characters. Here is my SQL
select
rfr.open_date,rfr.reason,s.forename "Stud_F",
s.surname "Stud_S",cp.forename "cswrk_f",
cp.surname "cswrk_s",s.addressee "Addressee",
s.gender,s.ncy,cwlk.fullname, cwlk.email,
conp.surname "cont_surname", conp.forename "contact_forename",
ca.block_address "Cont_Address",
adlk.fullname "Admin_Fullname,
bases.base_name, sadd.block_address "Stud_Address",
decode(s.gender,'F', 'daughter', 'son' ) "son_daughter",
decode(s.gender, 'F', 'her', 'his') "his_her",decode(s.gender, 'F', 'her', 'him') "him_her",decode(s.gender, 'F', 'she', 'he') "he_she",sysdate + 14 "reply_by_14_days"
from
stud_contact sc,people conp,
corresp_address ca,corresp_address sadd,
sss_referrals rfr,student s,
student_lookup sl,people_lookup cwlk,
people_lookup adlk,people cp,bases bases
where
sc.contact_id = conp.person_id and
s.stud_id = sadd.entity_id and
sadd.c_corresp = 'C' and
conp.person_id = ca.entity_id and
rfr.stud_id = s.stud_id and
rfr.stud_id = sl.stud_id and
cp.person_id = cwlk.person_id and
rfr.case_work_id = cwlk.person_id and
rfr.admin_officer_id = adlk.person_id and
s.stud_id = al.entity_id and
s.base_id = bases.base_id(+) and
al.address_id = sadd.address_id and
al.c_corresp = 'C' Learn something new every day *:->*