Tuesday, January 22, 2013

Clarity important tables to connect project and task.

Clarity important tables to connect project and task.
They are three tables 

- odf_ca_project ( This will have the all the attributes created for project)
odf_ca_task ( This will have the all the attributes created for tasks under project)
prtask ( This is important table which will connect the project and tasks by using project id.)

Sample query to connect the task and project by using prtask table.


update odf_ca_task oct
set oct.wbso100 = 'Yes'
where oct.id in (select prt.prid from odf_ca_project odf,prtask prt
where prt.prprojectid = odf.id
and odf.wbso_subsidy = 'ws_yes');

Happy coding 
Bala