Skip to content

SQL - How Can I Select Only Critical Tasks

C MollandMember for 11 years 5 months
Created
5
6
0

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.

5 replies

Oldest first
  1. 0
    Zoltan Palffy ·

    trydriving_path_flag

    try

    driving_path_flag

     

  2. 0
    C Molland ·

    Thanks for the suggestion. I

    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.

  3. 0
    Zoltan Palffy ·

    I still think that this wil

    I still think that this wil get you what you want 

  4. 0
    Barrie Callender ·

    The Total Float is held in

    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.

  5. 0
    Barrie Callender ·

    Sorry I got trigger happy and

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

Log in or join to reply

ProjectControls.com is free to join. Members can post questions, reply, vote and follow discussions.

Existing members: your original username and password still work. Forgot password?