SQL - How Can I Select Only Critical Tasks

C
C Molland 👤 Member for 11 years 1 month

Hello

I am developing an application which pulls data from a P6 SQL database. I want to select all Critical Tasks. Can someone advise me which SQL database Tables/Fields signify a Task as being Critical please.

I thought there was a 'critical_flag' field in the TASK Table but on checking I don't have one.

Thank you.

B
Barrie Callender 👤 Member for 20 years 3 months

The Total Float is held in the TOTAL_FLOAT_HR_CNT column in the TASK table.  You can look in the PROJECT table to find out what has been configured for Total Float and your SQL can be written to identify the Critical Tasks.

If you are using SQL directly then be careful to exclude the deleted Task records.

C
C Molland 👤 Member for 11 years 1 month

Thanks for the suggestion. I believe that this would be used only if the critical tasks were calculated using 'Longest Path'. In our scenario critical activities are calculated based upon total float.

Forum Sponsor

Top Posters

Josephus Enot
1 posts
Julian Pegg
1 posts
Peter Nagy
2 posts
Raymund de Laza
17 posts
Syed_Asad
0 posts
Tony Greyvenstein
0 posts
Ahmed Al-Jubouri
13 posts
Umar Alvi
3 posts
Sibusiso Mahlalela
0 posts
Michael Samanyayi
3 posts