Query to pull Active, terminated and new hire

Hi, I have the below query which is causing the issue
select employee_number ,to_char(creation_date,'DD-MON-YYYY') creation_date, person_id,object_version_number, person_type_id,
to_char(effective_start_date,'DD-MON-YYYY') emp_start_date, to_char(effective_end_date, 'DD-MON-YYYY') emp_end_date,
CASE WHEN trunc(sysdate) = trunc(creation_date) and sysdate between effective_start_date and effective_end_date then 'New Hire'
when sysdate between effective_start_date and effective_end_date then 'Active'
when trunc(sysdate)> trunc(effective_start_date) then 'Terminate'
end status
from per_all_people_f where employee_number like '%test%' and person_type_id=1120
--AND SYSDATE BETWEEN effective_start_date and effective_end_date
order by employee_number
The query returns the below data
employee_number creation_date person_id object_version_number, person_type_id, emp_start_date, emp_end_date, status
test_01     28-MAR-2013     2342     5     1120     27-MAR-2011     19-APR-2013     Terminate
test_02     29-MAR-2013     2345     7     1120     27-MAR-2011     31-DEC-4712     Active
test_03     29-MAR-2013     2346     12     1120     30-JUN-2011     31-DEC-4712     Active
test_03     29-MAR-2013     2346     9     1120     29-JUN-2011     29-JUN-2011     Terminate
test_03     29-MAR-2013     2346     7     1120     27-MAR-2011     28-JUN-2011     Terminate
test_05     19-APR-2013     2443     10     1120     27-MAR-2011     24-APR-2013     Terminate
test_07     24-APR-2013     2461     8     1120     27-MAR-2011     31-DEC-4712     New Hire
test_08     24-APR-2013     2462     4     1120     27-MAR-2011     24-APR-2013     Terminate
But I need in my output only the record with employee number test_03 only once because it is current object_version_number is 12
If I put the condition SYSDATE BETWEEN effective_start_date and effective_end_date it will not show me terminated records.
My output should look like
employee_number creation_date person_id object_version_number, person_type_id, emp_start_date, emp_end_date, status
test_01     28-MAR-2013     2342     5     1120     27-MAR-2011     19-APR-2013     Terminate
test_02     29-MAR-2013     2345     7     1120     27-MAR-2011     31-DEC-4712     Active
test_03     29-MAR-2013     2346     12     1120     30-JUN-2011     31-DEC-4712     Active
test_05     19-APR-2013     2443     10     1120     27-MAR-2011     24-APR-2013     Terminate
test_07     24-APR-2013     2461     8     1120     27-MAR-2011     31-DEC-4712     New Hire
test_08     24-APR-2013     2462     4     1120     27-MAR-2011     24-APR-2013     Terminate
Can some one help me what I am missing.
Thanks
Edited by: 885022 on Apr 24, 2013 3:33 AM

Hi,
It is always recommended that you fetch the Active employee details and ex-employee details in separate query and make a union of the two to give you the combined output. Thsi approach will ensure that you will only get one record for employee (an active record if S/He is an active employee or an ex-employee record). Try this out
Sample - select papf.employee_number, papf.full_name
from per_all_people_f papf,
per_person_type_usages_f pptu,
per_person_types ppt
where papf.person_id = pptu.person_id
and pptu.person_type_id = ppt.person_type_id
and ppt.system_person_type in ('EMP', 'CWK')
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and trunc(sysdate) between pptu.effective_start_date and pptu.effective_end_date
UNION
select papf.employee_number, papf.full_name
from per_all_people_f papf,
per_person_type_usages_f pptu,
per_person_types ppt
where papf.person_id = pptu.person_id
and pptu.person_type_id = ppt.person_type_id
and ppt.system_person_type in ('EX_EMP', 'EX_CWK')
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and trunc(sysdate) between pptu.effective_start_date and pptu.effective_end_date
Thanks,
Sanjay

Similar Messages

  • SQL Query to pull RMA number and corresponding sales order number info

    Hi,
    I do not have good idea on the data model. I was asked to pull Sales order info & corresponding Return order (RMA) information. Appreciate if someone can provide me the query.
    thanks.

    I believe you have to use the link_to_line_id column in oe_order_lines_all.
    For a return line, that column points to the original (i.e shipment) sales order line id.
    Hope this helps,
    Sandeep Gandhi

  • Updated to Mavericks. Now theres tons of activity in my terminal and my activity monitor doesn't seem normal. I want to think someone's hacking me, but i need experienced help please!

    I spent all night trying to fix this. It seems to me that someone has been trying to hack into my system with all of the random codes/lines in my terminal and i have all of his foreign IP addresses. And now i get this strange message that popped up in my terminal. Idk what it entirely means? I would very appreciate if someone could just walk me through this. Thank you very much.
    First time poster. I have Macbook Pro. OSX. Just downloaded the new mavericks. I'm i have my firewall on. I stay secure. I run Netbarrier, Virusbarrier, IdentityScrubber.
    I know something is a little odd or just doesn't make since about my activity monitor. Then my WiFi was hacked last night and this person was writing tons lines of commands/codes that i found in my terminal and my activity monitor doesn't look normal,  and I've only been a mac owner for about a year now and i'm learning more and more but while trying to figure out what was going on this message popped up which concerned me the most. Any help would be most appreciated, thanks guys. I have my terminal full of his foreign ip addresses i noticed, and a lot of other commands and lines he wrote out that i definitely did not type myself. Can anyone give me a hand on this? Thanks
    --- 192.168.1.103 ping statistics ---
    10 packets transmitted, 0 packets received, 100.0% packet loss
    Extol:~ FBI$ who
    FBI      console  Nov  7 02:14
    FBI      ttys000  Nov  7 04:33
    Extol:~ FBI$ whois
    usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] [-p port] name ...
    Extol:~ FBI$ whois 192.168.1.103
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    # Query terms are ambiguous.  The query is assumed to be:
    #     "n 192.168.1.103"
    # Use "?" to get help.
    # The following results may also be obtained via:
    # http://whois.arin.net/rest/nets;q=192.168.1.103?showDetails=true&showARIN=false& ext=netref2
    NetRange:       192.168.0.0 - 192.168.255.255
    CIDR:           192.168.0.0/16
    OriginAS:
    NetName:        PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
    NetHandle:      NET-192-168-0-0-1
    Parent:         NET-192-0-0-0-0
    NetType:        IANA Special Use
    Comment:        These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices.  They are only intended for use within a private context  and traffic that needs to cross the Internet will need to use a different, unique address.
    Comment:
    Comment:        These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry.  The traffic from these addresses does not come from ICANN or IANA.  We are not the source of activity you may see on logs or in e-mail records.  Please refer to http://www.iana.org/abuse/answers
    Comment:
    Comment:        These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
    Comment:        http://datatracker.ietf.org/doc/rfc1918
    RegDate:        1994-03-15
    Updated:        2013-08-30
    Ref:            http://whois.arin.net/rest/net/NET-192-168-0-0-1
    OrgName:        Internet Assigned Numbers Authority
    RegDate:
    Updated:        2012-08-31
    Ref:            http://whois.arin.net/rest/org/IANA
    OrgTechHandle: IANA-IP-ARIN
    OrgTechName:   Internet Corporation for Assigned Names and Number
    OrgTechPhone: 
    OrgTechEmail:
    OrgTechRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    OrgAbuseHandle: IANA-IP-ARIN
    OrgAbuseName:   Internet Corporation for Assigned Names and Number
    OrgAbusePhone
    OrgAbuseEmail: 
    OrgAbuseRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    Extol:~ FBI$
    Extol:~ FBI$ hosts
    -bash: hosts: command not found
    Extol:~ FBI$ who
    FBI      console  Nov  7 02:14
    FBI      ttys000  Nov  7 04:33
    Extol:~ FBI$ whois
    usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] [-p port] name ...
    Extol:~ FBI$ whois  192.168.0.0 - 192.168.255.255
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    # Query terms are ambiguous.  The query is assumed to be:
    #     "n 192.168.0.0"
    # Use "?" to get help.
    # The following results may also be obtained via:
    # http://whois.arin.net/rest/nets;q=192.168.0.0?showDetails=true&showARIN=false&ex t=netref2
    NetRange:       192.168.0.0 - 192.168.255.255
    CIDR:           192.168.0.0/16
    OriginAS:
    NetName:        PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
    NetHandle:      NET-192-168-0-0-1
    Parent:         NET-192-0-0-0-0
    NetType:        IANA Special Use
    Comment:        These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices.  They are only intended for use within a private context  and traffic that needs to cross the Internet will need to use a different, unique address.
    Comment:
    Comment:        These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry.  The traffic from these addresses does not come from ICANN or IANA.  We are not the source of activity you may see on logs or in e-mail records.  Please refer to http://www.iana.org/abuse/answers
    Comment:
    Comment:        These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
    Comment:        http://datatracker.ietf.org/doc/rfc1918
    RegDate:        1994-03-15
    Updated:        2013-08-30
    Ref:            http://whois.arin.net/rest/net/NET-192-168-0-0-1
    OrgName:        Internet Assigned Numbers Authority
    OrgId:          IANA
    Updated:        2012-08-31
    Ref:            http://whois.arin.net/rest/org/IANA
    OrgTechHandle: IANA-IP-ARIN
    OrgTechName:   Internet Corporation for Assigned Names and Number
    OrgTechPhone: 
    OrgTechEmail
    OrgTechRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    OrgAbuseHandle: IANA-IP-ARIN
    OrgAbuseName:   Internet Corporation for Assigned Names and Number
    OrgAbusePhone: 
    OrgAbuseEmail:
    OrgAbuseRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    Whois Server Version 2.0
    Domain names in the .com and .net domains can now be registered
    with many different competing registrars. Go to http://www.internic.net
    for detailed information.
    No match for "-".
    >>> Last update of whois database: Thu, 07 Nov 2013 13:19:14 UTC <<<
    NOTICE: The expiration date displayed in this record is the date the
    registrar's sponsorship of the domain name registration in the registry is
    currently set to expire. This date does not necessarily reflect the expiration
    date of the domain name registrant's agreement with the sponsoring
    registrar.  Users may consult the sponsoring registrar's Whois database to
    view the registrar's reported date of expiration for this registration.
    TERMS OF USE: You are not authorized to access or query our Whois
    database through the use of electronic processes that are high-volume and
    automated except as reasonably necessary to register domain names or
    modify existing registrations; the Data in VeriSign Global Registry
    Services' ("VeriSign") Whois database is provided by VeriSign for
    information purposes only, and to assist persons in obtaining information
    about or related to a domain name registration record. VeriSign does not
    guarantee its accuracy. By submitting a Whois query, you agree to abide
    by the following terms of use: You agree that you may use this Data only
    for lawful purposes and that under no circumstances will you use this Data
    to: (1) allow, enable, or otherwise support the transmission of mass
    unsolicited, commercial advertising or solicitations via e-mail, telephone,
    or facsimile; or (2) enable high volume, automated, electronic processes
    that apply to VeriSign (or its computer systems). The compilation,
    repackaging, dissemination or other use of this Data is expressly
    prohibited without the prior written consent of VeriSign. You agree not to
    use electronic processes that are automated and high-volume to access or
    query the Whois database except as reasonably necessary to register
    domain names or modify existing registrations. VeriSign reserves the right
    to restrict your access to the Whois database in its sole discretion to ensure
    operational stability.  VeriSign may restrict or terminate your access to the
    Whois database for failure to abide by these terms of use. VeriSign
    reserves the right to modify these terms at any time.
    The Registry database contains ONLY .COM, .NET, .EDU domains and
    Registrars.
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    # Query terms are ambiguous.  The query is assumed to be:
    #     "n 192.168.255.255"
    # Use "?" to get help.
    # The following results may also be obtained via:
    # http://whois.arin.net/rest/nets;q=192.168.255.255?showDetails=true&showARIN=fals e&ext=netref2
    NetRange:       192.168.0.0 - 192.168.255.255
    CIDR:           192.168.0.0/16
    OriginAS:
    NetName:        PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
    NetHandle:      NET-192-168-0-0-1
    Parent:         NET-192-0-0-0-0
    NetType:        IANA Special Use
    Comment:        These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices.  They are only intended for use within a private context  and traffic that needs to cross the Internet will need to use a different, unique address.
    Comment:
    Comment:        These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry.  The traffic from these addresses does not come from ICANN or IANA.  We are not the source of activity you may see on logs or in e-mail records.  Please refer to http://www.iana.org/abuse/answers
    Comment:
    Comment:        These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
    Comment:        http://datatracker.ietf.org/doc/rfc1918
    RegDate:        1994-03-15
    Updated:        2013-08-30
    Ref:            http://whois.arin.net/rest/net/NET-192-168-0-0-1
    OrgName:        Internet Assigned Numbers Authority
    OrgId:          IANA
    RegDate:
    Updated:        2012-08-31
    Ref:            http://whois.arin.net/rest/org/IANA
    OrgTechHandle: IANA-IP-ARIN
    OrgTechName:   Internet Corporation for Assigned Names and Number
    OrgTechPhone:
    OrgTechEmail
    OrgTechRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    OrgAbuseHandle: IANA-IP-ARIN
    OrgAbuseName:   Internet Corporation for Assigned Names and Number
    OrgAbusePhone: 
    OrgAbuseEmail: 
    OrgAbuseRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN
    # ARIN WHOIS data and services are subject to the Terms of Use
    # available at: https://www.arin.net/whois_tou.html
    <Personal Information Edited by Host>

    haha, so now i'm thinking. I'm learning the terminal as fast as i can but there are several lines of codes and commands in there that throws up red flags to me that i don't fully understand. It just looks fishy too me. It would be highly appreciated if someone could just check this out just to tell me that i don't need to worry about it. Or point me in the right direction. I just feel un easy about this. ha.

  • 11.1.2 - Workforce and CAPEX issue - Add New Hires and Add New Asset Rules

    Hi All,
    We are working on Oracle Fusion 11.1.2 and are using the out of box functionality for Workforce and CAPEX.
    We are facing a weird issue in case of the above Modules when we try to Add a new Hire or a new Asset in the respective modules using the Add TBH Hourly , Add TBH Salary and Add Asset rules.
    The Issue is sometimes the correct number of New Hires or Assets is added as specified in the prompt. For instance, if specify Number of New Hires as 5, then 5 rows of TBH are added on the web form dynamically with other employee properties populated on the form as mentioned in the prompt. However, at times this does not happen, so if I specify 5, 4 rows are added, if I specify 15, 7 rows are added and so on.
    The out of box rule looks okay, we are not sure why this should happen?
    Has anyone of you faced a similar issue, It would be really helpful if you can share your thoughts.
    Thanks a ton in advance.
    Madhavi

    Have you try to check the related Business Rule? In older version Add TBH menu related to a Business Rule. Never configure this module on 11.1.2 but maybe the add tbh menu related to a Business Rule or Script on Calculation Manger

  • I moved Creative Suite 5 to a new computer, deactivated on the old, activated on the new, but only Illustrator and Photoshop will open. The rest of the suite will not open. How do I fix this?

    I moved Creative Suite 5 from my old MacBook Pro to my new MacBook Air and followed the instructions for deactivating on the old and activating on the new but only Photoshop and Illustrator will work. I need to also access InDesign, Acrobat, Dreamweaver and Fireworks. Is there a way to fix this? Problem with the MacBook Air is that is doesn't have a disc drive so I had to transfer via external hard drive.
    Cheers.

    The problem is that you need to install CS5 from an installation file or installation disc. You can't just copy files because there are lots of supplementary files that don't get put in the right location.
    You'll need to use the Adobe Cleaner to remove all the stuff on your new computer:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Then download an installer for CS5:
    Other downloads

  • I have a new hard drive, can I pull my contacts and ical from my iphone?

    I have a new hard drive and I would like to pull my ical and contacts from my iphone to replace what I lost but when I sync my phone it doesn't bring the data onto my computer and if I choose sync calendar and contacts it seems to want to erase the phone and replace with the blank computer data. Any ideas?

    If you are running OSX Lion and iOS 5, you can sync via iCloud.
    What versions of OSX and iOS are you running?

  • What is the best method to query for older GPIB equipment with ID? and newer with *IDN?

    Good day,
    I am writing a test executive where it needs to scan the bus for support of older (HP/Agilent 856x series) and newer (Agilent 440x and 444x series) spectrum analyzers. *NOTE* I originally posted this question in my NI Community blog. I apologize for redundancy but someone recommended I re-post here.
    The first frame looks for the newer analyzers with *IDN? then if that fails sets the boolean in the error cluster to TRUE. The next frame then uses the error cluster's boolean to decide whether an older HP analzer is connected instead using ID? query. Disclaimer: the second frame is a clone of the ID query of the 856x Initialize VI. I just want to use what already worked - no reinventing the same wheel?
    But, lo and behold, it doesn't work as expected. If I have the frames in this order and connect a HP8563E the GPIB time's out error. This code works with the newer 4407 or 4440 since the *IDN? query passes and the second frame is not executed.
    Now, when I move the second frame to become the first frame and run it with HP8563E the query works but will have a GPIB timeout if I have the 4407 or 4440 connected.
    Long story short, how do I support both older GPIB ID? and newer IDN? in my code?
    I have attached the query VI created with LV 2012.
    Many thanks!
    Aldrin
    Attachments:
    Query ID and IDN.vi ‏11 KB

    I think Michael Aivaliotis of JKI and NI have an elegant solution:
    https://decibel.ni.com/content/groups/large-labview-application-development/blog/2015/05/14/what-is-...
    Cheers!
    Aldrin

  • HR Report for finding details for the new hires and leavers

    Dear All,
    I am very new to SAP HR ABAP.
    Need Help
    I have to create a report which fetches all the details <Details are mentioned below>
    for all the
    1)     New hires
    2)     Leavers
    in between a time range.
    <Details to be fetched :~ 
    Title
    Fax
    Mobile
    Nationality
    Domicile
    Religion
    Passport
    Place of issue
    Issue date
    Valid till
    Date of Hire
    Action Reason
    Reporting to
    Date of exit interview
    Leave Date
    Leaving Reason
    Street
    Address Line2
    City
    District
    Region
    Country
    Postal Code
    Communication Number
    Personal ID
    Date Of Last Hire
    Location
    Job
    Payroll area
    OrgLvl1
    OrgLvl2
    OrgLvl3
    OrgLvl4
    Personnel Number
    Date of seniority
    EEBankName
    Bank account no
    Bank account type
    PERID
    Thanks a lot !!!
    Joy
    Edited by: joydip majumder on Jul 11, 2008 10:46 AM

    Hi  joy ,
    you can create ur own z-report for this requirement  , for this u have to  read the  employee data with in the date rage for   infotype 0 (Action) for hiring and leaving dates. Other related infomation  u can fetch from the related infotypes tables like PA0001 etc using simple select queries.All required fields can be dispalyed in the  ALV output.
    Regards
    Lakhan
    Edited by: lakhan on Jul 11, 2008 2:35 PM

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • Can we create a fillable W4 form for new hires and sign it electronically

    Can we create a fillable w4 form for new hires.  can the new hire sign electronically and what is the cost for having electronic signatures?

    We don't support electronic signatures. You should check out our sister service Adobe Echosign - www.echosign.com

  • My mail can send out message but can't receive new e-mail? and some software(adobe illustrator cs) and applications(terminal) can't run ? but in another user account, terminal and illustrator can run.

    Hi,
    My Mac info:
    Machine Name:          Power Mac G5
    Machine Model:          PowerMac7,3
    CPU Type:          PowerPC G5  (3.0)
    Mail Version 2.1.3 (753.1)
    My mail application can send out message but can't receive new e-mail now ? please see attached before my capture screen
    and some software(adobe illustrator cs) and applications(terminal) can't run ? please see attached
    but in another user account, terminal and illustrator can run.
    Please kindly help to check with these problems. Thanks.

    Verify and Repair disk “Data”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    Volume Header needs minor repair
    Repairing volume.
    Rechecking volume.
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume Data was repaired successfully.
    Mounting Disk
    1 HFS volume checked
    Repair attempted on 1 volume
      1 HFS volume repaired

  • HT201365 How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID & password it won't do anything. Says waiting for activation!! Help!

    How can the iMessages and FaceTime be activated with this new ISO 7 update? When I enter my Apple ID &amp; password it won't do anything. Says waiting for activation!! Help!

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    -Griff W.

  • What will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports

    what will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports. I also want to know the tables involved

    Hi Andrew,
    Part A:
    I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
    Field List:
    Priority: Popup menu with six items: 00, J, D, 1, 2, 3  Defaults to 00
    TL (time limit in months): Calculation:  CHOOSE('Priority',0,1,3,4,6,12)
    Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
    Target Date: Calculation:
    DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
    Remaining (Days): Calculation: INT('Target Date'+1-NOW())  (see revision below)
    Completed: Checkbox. Set default value to Unchecked.
    Completed Date: Date: Entered manually
    OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
    The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
    Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
    Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
    Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
    Rsults (and some further formatting of the Layout) below.
    Part B:
    You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on  a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
    Regards,
    Barry

  • HT201442 i have updated my iphone 4s to the new ios 7.1 ,but it stuck on active mode and it needs my account because i used "find my iphone" before ,but the problem is my account is banned by apple i dont know why ,so what should i do ?

    i have updated my iphone 4s to the new ios 7.1 ,but it stuck on active mode and it needs my account because i used "find my iphone" before ,but the problem is my account is banned by apple i dont know why ,so what should i do ?

    You need to update iTunes to 11.1 on your PC

  • Announcing new activity logging and reporting capabilities for Office 365

    Announcing new activity logging and reporting capabilities for Office 365We are pleased to announce the rollout of new activity logging and reporting capabilities for Office 365, including the Office 365 activity report, comprehensive logging capability, PowerShell command or cmdlet and a preview of the Office 365 Management Activity API.Thisnew capability provides you increased transparency, allowing you to monitor and investigate actions taken on your data, and comply with laws and regulations.Office 365 activity reportThe Office 365 activity report enables you to investigate a user’s activity by searching for a user, file or other resource across SharePoint Online, One Drive for Business, Exchange Online and Azure Active Directory, and then download the activities to a CSV (comma separate values) file. You can filter by date range,...
    This topic first appeared in the Spiceworks Community

    Hi,
    Do you have any specific questions? We'll certainly try to help you, but we won't do your homework for you. That wouldn't help you learn at all.
    I recommend looking over the learning materials here, they're quite good for getting started with PowerShell:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

Maybe you are looking for

  • Sound just cut out.

    Hey. I own a Pavilion G6 (I think its the 1325ae) I've had it for around four months give or take. About two days ago I opened up my Calibre application (read books) and my Itunes just stopped playing. I thought at first that maybe it was because of

  • Adobe Photoshop cs6 over citrix, Image Issue

    HI Guys, I am Citrix Tech, could you please help or suggest me in get this issue sorted. we have published Adobe Photoshop CS6 over Citrix which uses ICA protocol. When user launches the application and opens a image it loads with Blue coat color ove

  • Vendor Invoice Payment (Urgent please)

    Hi Need to know I have done Down payment to Vendor F-47 of Rs 3000 then did F110 and paid the vendor throguh Check. Now I created a PO of Rs 8500 and did GR and so while doing Invoice of it showed me 3000- down payment exists. Show how can  I did the

  • X Pro crashes when clicking Properties

    When I right-click on Properties on an object I get an "Adobe Acrobat has stopped working" error message and then Acrobat X Pro crashes. The PDF I'm working with is a legacy PDF is apparently created from CorelDRAW rendered in Acrobat 7 format. I'm t

  • Apache in testing dosen't work

    i install apache mysql and php in testing repo. but apache dosen't work. $ sudo /etc/rc.d/httpd start :: Starting HTTP Daemon                                                  [FAIL] $ sudo /usr/sbin/apachectl start httpd: Syntax error on line 232 of