hi folks,
I have the following query:
this lists the Chargecode, TaskName, ProjectNumber, Actuals and Resource Code.
Each task can have several entries.
some of the entries will have a null value in the PRRESOURCEID field and PRACTSUM field.
I need to change this query so that it will show those PREXTERNALID's that ONLY have null values in the PRRESOURCEID field.
heres an exmaple of the results:
PREXTERNALID, PRNAME, DSTI_PROJ_REF, PRACTSUM, PRRESOURCEID
LDEV5120 Coding UKE1234 15 5000123
LDEV5120 Coding UKE1234 25 5000123
LDEV5120 Coding UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5222 Design UKE1234 5 5000134
LDEV5222 Design UKE1234 15 5000123
LDEV5222 Design UKE1234 23 5000160
LDEV5222 Design UKE1234 10 5000160
LDEV5000 Testing UKE1234
LDEV5000 Testing UKE1234 15 5000123
in the above exmaple (the results from my query)
I need to change the query so that I only retrieve
one result:
LDEV5080 Proj. Spec UKE1234
notice that all others have PRACTSUM values against PREXTERNALID
how is this possible?
I have the following query:
Code:
select CHG.PREXTERNALID, CHG.PRNAME, CST.DSTI_PROJ_REF, A.PRACTSUM, A.PRRESOURCEID
FROM
NIKU.PRTASK T,
NIKU.PRCHARGECODE CHG,
NIKU.PRASSIGNMENT A,
NIKU.ODF_CA_PROJECT CST
WHERE
CST.ID = T.PRPROJECTID AND
A.PRTASKID (+)= T.PRID AND
T.PRCHARGECODEID = CHG.PRID AND
CST.DSTI_PROJ_REF LIKE 'UKE04706%'
--AND A.PRACTSUM
ORDER BY PREXTERNALID
this lists the Chargecode, TaskName, ProjectNumber, Actuals and Resource Code.
Each task can have several entries.
some of the entries will have a null value in the PRRESOURCEID field and PRACTSUM field.
I need to change this query so that it will show those PREXTERNALID's that ONLY have null values in the PRRESOURCEID field.
heres an exmaple of the results:
PREXTERNALID, PRNAME, DSTI_PROJ_REF, PRACTSUM, PRRESOURCEID
LDEV5120 Coding UKE1234 15 5000123
LDEV5120 Coding UKE1234 25 5000123
LDEV5120 Coding UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5080 Proj. Spec UKE1234
LDEV5222 Design UKE1234 5 5000134
LDEV5222 Design UKE1234 15 5000123
LDEV5222 Design UKE1234 23 5000160
LDEV5222 Design UKE1234 10 5000160
LDEV5000 Testing UKE1234
LDEV5000 Testing UKE1234 15 5000123
in the above exmaple (the results from my query)
I need to change the query so that I only retrieve
one result:
LDEV5080 Proj. Spec UKE1234
notice that all others have PRACTSUM values against PREXTERNALID
how is this possible?