Website Upgrade Incoming - we're working on a new look (and speed!) standby while we finalise the project

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

SQL - How Can I Select Only Critical Tasks

5 replies [Last post]
C Molland
User offline. Last seen 9 years 27 weeks ago. Offline
Joined: 20 Apr 2015
Posts: 6
Groups: None

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.

Replies

Barrie Callender
User offline. Last seen 1 year 28 weeks ago. Offline
Joined: 15 Feb 2006
Posts: 39
Groups: None

Sorry I got trigger happy and ended up posting the same thing twice

Barrie Callender
User offline. Last seen 1 year 28 weeks ago. Offline
Joined: 15 Feb 2006
Posts: 39
Groups: None

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.

Zoltan Palffy
User offline. Last seen 3 weeks 2 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

I still think that this wil get you what you want 

C Molland
User offline. Last seen 9 years 27 weeks ago. Offline
Joined: 20 Apr 2015
Posts: 6
Groups: None

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.

Zoltan Palffy
User offline. Last seen 3 weeks 2 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

try

driving_path_flag