A
Andre.quitta
I am using MS Project 2002 standard and am using MSP_TIMEPHASED_DATA.
What I am not understanding is the TD_START_DATE.
For the TD_UNIT = 3 (unit of measure = "w" or week), I would expect
the TD_START_DATE to be a Sunday (the first day of the week) each
time, but its not. Its just as often a Tuesday or Thursday.
Would someone explain to me the meaning of
MSP_TIMEPHASED_DATA.TD_START_DATE?
My working query is below. Any help is appreciated.
Thanks
André Q
SELECT DISTINCT
MSP_ASSIGNMENTS.TASK_UID,
MSP_TASKS.TASK_NAME,
MSP_TASKS.TASK_START_DATE,
MSP_TASKS.TASK_FINISH_DATE,
MSP_RESOURCES.RES_NAME,
MSP_RESOURCES.RES_INITIALS,
MSP_TIMEPHASED_DATA.TD_REF_UID,
StrTypeCategory.STRING_TYPE,
ConvCategory.CONV_STRING,
StrTypeUnits.STRING_TYPE,
ConvUnits.CONV_STRING,
MSP_TIMEPHASED_DATA.TD_START,
MSP_TIMEPHASED_DATA.TD_FINISH,
Format([TD_VALUE1]/60000,"Standard") AS Week1,
Format([TD_VALUE2]/60000,"Standard") AS Week2,
Format([TD_VALUE3]/60000,"Standard") AS Week3,
Format([TD_VALUE4]/60000,"Standard") AS Week4,
Format([TD_VALUE5]/60000,"Standard") AS Week5,
Format([TD_VALUE6]/60000,"Standard") AS Week6,
Format([TD_VALUE7]/60000,"Standard") AS Week7,
MSP_TIMEPHASED_DATA.TD_UNITS
FROM MSP_TIMEPHASED_DATA
INNER JOIN MSP_CONVERSIONS AS ConvCategory
ON MSP_TIMEPHASED_DATA.TD_CATEGORY = ConvCategory.CONV_VALUE
INNER JOIN MSP_STRING_TYPES AS StrTypeCategory
ON ConvCategory.STRING_TYPE_ID = StrTypeCategory.STRING_TYPE_ID
INNER JOIN MSP_CONVERSIONS AS ConvUnits
ON MSP_TIMEPHASED_DATA.TD_UNITS = ConvUnits.CONV_VALUE
INNER JOIN MSP_STRING_TYPES AS StrTypeUnits
ON ConvUnits.STRING_TYPE_ID = StrTypeUnits.STRING_TYPE_ID
INNER JOIN MSP_ASSIGNMENTS
ON MSP_TIMEPHASED_DATA.TD_REF_UID = MSP_ASSIGNMENTS.ASSN_UID
INNER JOIN MSP_TASKS
ON MSP_ASSIGNMENTS.TASK_UID = MSP_TASKS.TASK_UID
INNER JOIN MSP_RESOURCES
ON MSP_ASSIGNMENTS.ImportKeyID = MSP_RESOURCES.ImportKeyID
AND MSP_ASSIGNMENTS.RES_UID = MSP_RESOURCES.RES_UID
WHERE MSP_TIMEPHASED_DATA.TD_REF_UID = 60249
AND ConvCategory.CONV_STRING = "Assignment"
AND ConvUnits.CONV_STRING = "w"
AND ConvCategory.STRING_TYPE_ID = 100
AND ConvUnits.STRING_TYPE_ID = 108
ORDER BY MSP_TIMEPHASED_DATA.TD_REF_UID,
MSP_TIMEPHASED_DATA.TD_START
What I am not understanding is the TD_START_DATE.
For the TD_UNIT = 3 (unit of measure = "w" or week), I would expect
the TD_START_DATE to be a Sunday (the first day of the week) each
time, but its not. Its just as often a Tuesday or Thursday.
Would someone explain to me the meaning of
MSP_TIMEPHASED_DATA.TD_START_DATE?
My working query is below. Any help is appreciated.
Thanks
André Q
SELECT DISTINCT
MSP_ASSIGNMENTS.TASK_UID,
MSP_TASKS.TASK_NAME,
MSP_TASKS.TASK_START_DATE,
MSP_TASKS.TASK_FINISH_DATE,
MSP_RESOURCES.RES_NAME,
MSP_RESOURCES.RES_INITIALS,
MSP_TIMEPHASED_DATA.TD_REF_UID,
StrTypeCategory.STRING_TYPE,
ConvCategory.CONV_STRING,
StrTypeUnits.STRING_TYPE,
ConvUnits.CONV_STRING,
MSP_TIMEPHASED_DATA.TD_START,
MSP_TIMEPHASED_DATA.TD_FINISH,
Format([TD_VALUE1]/60000,"Standard") AS Week1,
Format([TD_VALUE2]/60000,"Standard") AS Week2,
Format([TD_VALUE3]/60000,"Standard") AS Week3,
Format([TD_VALUE4]/60000,"Standard") AS Week4,
Format([TD_VALUE5]/60000,"Standard") AS Week5,
Format([TD_VALUE6]/60000,"Standard") AS Week6,
Format([TD_VALUE7]/60000,"Standard") AS Week7,
MSP_TIMEPHASED_DATA.TD_UNITS
FROM MSP_TIMEPHASED_DATA
INNER JOIN MSP_CONVERSIONS AS ConvCategory
ON MSP_TIMEPHASED_DATA.TD_CATEGORY = ConvCategory.CONV_VALUE
INNER JOIN MSP_STRING_TYPES AS StrTypeCategory
ON ConvCategory.STRING_TYPE_ID = StrTypeCategory.STRING_TYPE_ID
INNER JOIN MSP_CONVERSIONS AS ConvUnits
ON MSP_TIMEPHASED_DATA.TD_UNITS = ConvUnits.CONV_VALUE
INNER JOIN MSP_STRING_TYPES AS StrTypeUnits
ON ConvUnits.STRING_TYPE_ID = StrTypeUnits.STRING_TYPE_ID
INNER JOIN MSP_ASSIGNMENTS
ON MSP_TIMEPHASED_DATA.TD_REF_UID = MSP_ASSIGNMENTS.ASSN_UID
INNER JOIN MSP_TASKS
ON MSP_ASSIGNMENTS.TASK_UID = MSP_TASKS.TASK_UID
INNER JOIN MSP_RESOURCES
ON MSP_ASSIGNMENTS.ImportKeyID = MSP_RESOURCES.ImportKeyID
AND MSP_ASSIGNMENTS.RES_UID = MSP_RESOURCES.RES_UID
WHERE MSP_TIMEPHASED_DATA.TD_REF_UID = 60249
AND ConvCategory.CONV_STRING = "Assignment"
AND ConvUnits.CONV_STRING = "w"
AND ConvCategory.STRING_TYPE_ID = 100
AND ConvUnits.STRING_TYPE_ID = 108
ORDER BY MSP_TIMEPHASED_DATA.TD_REF_UID,
MSP_TIMEPHASED_DATA.TD_START