I have an oracle database that holds maintenance records. I'm looking to find where my "REACTIVE" calls have increased this year over last year per "ASSET".
Field names:
WONUM= work order number.
WORKTYPE= work order maintenance types (REACTIVE).
ASSETNUM= unique asset id tag.
REPORTDATE= date the work order was created.
Is it possible to write a query like the example below?
ie... WHERE (count(worktype ='REACTIVE') and reportpdate > trunc(sysdate -365)) > (count(worktype ='REACTIVE') and (reportpdate > trunc(sysdate -720 and reportpdate <trunc(sysdate -365))))
Thanks,
tav
Field names:
WONUM= work order number.
WORKTYPE= work order maintenance types (REACTIVE).
ASSETNUM= unique asset id tag.
REPORTDATE= date the work order was created.
Is it possible to write a query like the example below?
ie... WHERE (count(worktype ='REACTIVE') and reportpdate > trunc(sysdate -365)) > (count(worktype ='REACTIVE') and (reportpdate > trunc(sysdate -720 and reportpdate <trunc(sysdate -365))))
Thanks,
tav