The folloing query return the query I am looking for however the performance is not too goog. Could some one provide some technical advise how to improve performance.
select f. s_name_1,
g.company_name,
g. s_name_1,
k.full_name,
j.p_name,
e.edit_date,
e.status,
l.login,
a.operationDate,
a.value,
h.login
from J_history A,
J_pages B,
J_items C,
systema_tables D,
PCCDES E,
company F,
company G,
P_users H,
region I,
product J,
contact K,
P_users L
where
A.J_pages_id = B.J_pages_id
AND B.J_pages_id = C.J_pages_id
AND A.field = 'TERRA'
AND NOT A.value = 'ACCESS'
AND C.ugly_table = D.tables_id
AND D.table_name = 'PCCDES'
AND C.reference_record = E.PCCDES_id
AND E.dealer_id = F.company_id
AND E.client_id = G.company_id
AND A.rn_create_user = H.users_id
AND I.region_id = F.region_id
AND I.region_name = 'LANDIA'
AND J.product_id = E.product_id
AND E.contact_id = K.contact_id
AND E.edit_user = I.users_id
select f. s_name_1,
g.company_name,
g. s_name_1,
k.full_name,
j.p_name,
e.edit_date,
e.status,
l.login,
a.operationDate,
a.value,
h.login
from J_history A,
J_pages B,
J_items C,
systema_tables D,
PCCDES E,
company F,
company G,
P_users H,
region I,
product J,
contact K,
P_users L
where
A.J_pages_id = B.J_pages_id
AND B.J_pages_id = C.J_pages_id
AND A.field = 'TERRA'
AND NOT A.value = 'ACCESS'
AND C.ugly_table = D.tables_id
AND D.table_name = 'PCCDES'
AND C.reference_record = E.PCCDES_id
AND E.dealer_id = F.company_id
AND E.client_id = G.company_id
AND A.rn_create_user = H.users_id
AND I.region_id = F.region_id
AND I.region_name = 'LANDIA'
AND J.product_id = E.product_id
AND E.contact_id = K.contact_id
AND E.edit_user = I.users_id