Include those records that have Null End Dates

I have to pull a report that show those who are currently working so we are assuming those with no End Dates are still working. When I put '0' or '0/0/00' for the End Date I get an error stating I need to put in a date.
How do I only include those records that have Null End Dates? Ultimately I need a count of those currently employed. So I'm assuming once my report only shows those records I can add a running total field.
I have Crystal XI.
Thanks

Try entering some default value for null like enter a default date "1/1/1900" which means that the end date is null.
Now in the record selection write the condition like this
if {?EndDateParameter}=date(1900,1,1) then
(isnull(datefield)=true or totext(datefield)="")
else
datefield={?EndDateParameter}
Regards,
Raghavendra

Similar Messages

  • How to display records that match user input date

    hi all,
      i need to display records that match user input date (i.e., for example if the difference between user input date and record date is less than 5 years then display those records) , this is for hr bw. any exit is there to check for validation for records to be displayed based on some abap coding.
    vijay

    I just see getApplication method but "Retrieves a list of all the deployed applications."
    My scenario is: I get user, end i want to discorver how application this user i enable to see.

  • Extract only records that have difference sum

    Hi all. I'm on oracle 10g.
    I have a question. I have two select statement, both with sum function.
    I want that from first select I must retrieve only records which have different sum.
    Here is the code:
    first select statement
    select a.codice_contratto codice_contratto, a.codice_qualifica codice_qualifica,
    a.codice_istituzione codice_istituzione, sum(a.nume_dip_tot) tot, sum(a.nume_dip_donne) donne
    from tn_bz_t_10 a
    where a.anno = 2006
    group by a.codice_contratto, a.codice_qualifica, a.codice_istituzione
    order by a.codice_contratto, a.codice_qualifica, a.codice_istituzione
    secon select statement
    select codice_contratto, codice_qualifica,
    codice_istituzione,
    sum(nume_dip_tot17) tot, sum(nume_dip_donne17) donne
    from tabella10
    where anno = 2006
    and versione = 'D'
    and nume_dip_tot17 <> 0
    group by codice_contratto, codice_qualifica, codice_istituzione
    order by codice_contratto,codice_qualifica,codice_istituzione
    My goal is that from first select I must retrieve only those records which have difference sum, tot or donne,
    from second select...
    How can I achieve that??
    Thanks all for collaboration,
    Fabrizio Delli Priscoli
    Edited by: Fabrizio Delli Priscoli on 23-set-2010 14.25

    Hi, Fabrizio,
    (1) an inner join, or
    (2) NOT IN
    are two ways that will probably be efficient.
    You've been using this forum for nearly 9 years, so you know that, to get a more detailed answer, you need to post a more detailed question.
    Post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
    Format your code and results, and post them between \ tags to keep this site from removing the extra spaces.
    Always say what version of Oracle you're using.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Photos App and images that have no place data

    I am considering moving to the Photos App from iPhoto, but I have a large number of old photos and documents that have no location data. Most were scanned several years ago, such as genealogy records, birth certificates, etc. How does Photos handle these images? Do they appear in Collections and Moments like other images even though they have no location data? Must I assign each some arbitrary location if I want the images to stay together? Should I also alter the "time the image was taken" as well? If not, I assume they will be sorted according to the time the image was added to iPhoto.

    Photos without location data will appear in the moments based on the date. If the photos have no capture date, the file creation date will be used.
    Must I assign each some arbitrary location if I want the images to stay together?
    How are your photos stored now? If the are in iPhoto you could assign places to them and adjust the dates of your scans to group them by date in a meaningful way before migrating the library to Photos.
    But photos will also allow you to create albums  or smart albums based on keywords and other tags.  iPhoto events will be mapped to albums.

  • How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    Create one on the first Tuesday, select repeat/monthly and take the option at the bottom.

  • Find all records that have character alone in a string

    Oracle 10g Enterprise Edition
    Hi all,
    I must select from a varchar2 field, all the records that have a character (number or char) alone in the string.
    For example.
    ASDF BHGR H RR (yes, cause "H")
    ASDF BHGR H4 R (yes, cause "R")
    ASDF B H4 DDR (yes, cause "B")
    ASDF B H4 DDR (yes, cause "B")
    ASDF BC 1 DDR (yes, cause "1")
    ASDF BC / DDR (yes, cause "/")
    ASDF BHGR H4 RR (no)
    ASDF (no)
    I'm trying by SubStr, but I cannot generally solutions.
    Thank's for any suggestion.
    Ciao

    Ok, just a try :
    SQL> with tbl as
      2  (select 'ASDF BHGR H RR' str from dual union all
      3   select 'ASDF BHGR H4 R' str from dual union all
      4   select 'ASDF B H4 DDR' str from dual union all
      5   select 'ASDF BHGR H4 R1' str from dual union all
      6   select 'ASDF BHGR H4' str from dual union all
      7   select 'ASDF - H4' str from dual union all
      8   select 'a1 ASDF BHGR H4' str from dual union all
      9   select 'ASDF B H4 DDR' str from dual union all
    10   select 'ASDF BC 1 DDR' str from dual union all
    11   select 'ASDF BC / DDR' str from dual)
    12  select str,
    13         decode(regexp_instr(str,'^. | . | .$'),0,'no',decode(regexp_instr(str,'^- | - | -$'),0,'yes','no')) res
    14  from tbl;
    STR             RES
    ASDF BHGR H RR  yes
    ASDF BHGR H4 R  yes
    ASDF B H4 DDR   yes
    ASDF BHGR H4 R1 no
    ASDF BHGR H4    no
    ASDF - H4       no
    a1 ASDF BHGR H4 no
    ASDF B H4 DDR   yes
    ASDF BC 1 DDR   yes
    ASDF BC / DDR   yes
    10 rows selected.May is there is a simpler way.
    Nicolas.

  • Query for retreiving table names that have the same data

    Hi,
    Does anybody know how to retreive all the table names that have the same data in their respective tables but i dont know the table names or its fields. Is there any possible query to perform this action???
    Thanks in Advance,
    Balaji.

    What about...
    WITH manager_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id
      AND   m.name = :P_MANAGER)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    ), all_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    SELECT a.*
    FROM   manager_list m,
           all_list a
    WHERE  m.employees = a.employeesWould be easier in 11g, but I don't have an installation here so this is based on 10g.
    Cheers
    Ben

  • Returning only records that have no entry in a specific field

    Hello,
    I'm new to this forum and relatively new to Crystal Reports, so I apologize if this information is "plain as day" somewhere.  I've been hunting for this info for quite a while and can't find anything that makes sense!
    I am trying to put together a very simple report that will return only records where a certain field is blank.
    It is an Access database, in an information management program specific to our type of business.  CR 11 software was included with the LIMS (Laboratory Information Management System), as the reports generated from the LIMS software are in CR.  I've learned enough to be able to tweak reports and make some basic reports, but I can't find a simple answer to what I think is a simple question! 
    I have the report set up to access the following fields in the database:  Invoice number, Client name, Due date, Invoice amount, and Payment Received.  This will be used as a "cross check" - not as any major accounting tool - as the Payment Received field is simply the date that the payment was received.  If no payment has been received, the field is left blank.
    I want the report to return ONLY those records where that field is blank (i. e. a list of invoices/clients whose payment has not yet been received).
    Ideally, I would also like to be able to return only those records where that field is blank OR within a certain date range (i. e. less than 30 days from the date that the report is run).  However, we'll probably only use this report a couple of times a month, so that is not as critical.
    I know I need to filter the records according to the Payment Received field, but don't know how to construct a formula that says "just show the fields where there is nothing entered."
    Thank you!
    Brenda

    This is the hardest function to find:  IsNull
    If isNull(field) then  
        //  if the above fails on a numberic field or text field then see the following two-some databases are picky.
    If IsNull(field) or field=0 then  //this one maybe needed for a numeric field
    If IsNull(field) or field=""    //  this one maybe needed for a text field
    if IsNull(field) or field=<value>
    or
    if IsNull(field) or field like <value*>
    You always want the IsNull statement to be the first statement, and it is especially usefull when testing for not equal
    If IsNull(field) or field <>  <value>

  • Display total of contents of 'fields a' for records that have identical 'fields b' in common

    Please forgive me for my inability to put this in simple
    terms. I tried to search the forums for a solution but when you
    can't formulate your question in a pithy manner it's nigh
    impossible!
    I am attaching code for a query that grabs all the records in
    a few tables that relate to workshops that have been attended but
    not yet paid for. What I want to do with them next is to add the
    "WorkshopCost" field for each of the records that has an identical
    "SchoolName" and display the result, so that we have a subtotal for
    each school.
    I suspect this should probably be very easy but for some
    reason I can't figure out how it should be accomplished - if there
    is another posting where this is answered I would be very happy is
    someone would point it out! or otherwise give me a shove in the
    right direction.
    I'm thinking I need to do something with the array created by
    my query...?

    If I am understanding correctly, you would like to display a
    subtotal for each school. A simple option is to use the "group"
    attribute of cfquery. Then you could calculate the subtotal as you
    loop through the results and display it after each section. Another
    option is to use a QoQ.
    Keep in mind that when using "group", your sql query
    must order the results the same way. In other words, if you
    are grouping by "s_SchoolName" then your query must also ORDER BY
    s_SchoolName. Otherwise, the results will display incorrectly.

  • For those people that have a issue with MSI DVD that won't work right

    I  have an MSI K9 SLI Platium 7250 w/ an AMD Athlon X2 4600+ 2.4 GHz. I have MSIDVD that originaly came with my old Motherboard MS-680E AMD Atlon XP 1700+ 1.4GHz. When I upgraded MSIDVD wouldn't work right and every time I Would insert a a DVD MSIDVD would give a wierd error. But here a hint how to bypass. As long as you have MSIDVD installed you should be able to play DVD's through Windows Media Player without any problems, thats what I was able to do. Or if you still want to use MSIDVD, you need to download a program from AMD, here are the detales, I also done this too
    The Program is called "AMD Dual-Core Optimizer"
    The AMD Dual-Core Optimizer can help improve some PC gaming video performance by compensating for those applications that bypass the Windows API for timing by directly using the RDTSC (Read Time Stamp Counter) instruction. Applications that rely on RDTSC do not benefit from the logic in the operating system to properly account for the affect of power management mechanisms on the rate at which a processor core's
    Time Stamp Counter (TSC) is incremented. The AMD Dual-Core Optimizer helps to correct the resulting video performance effects or other incorrect timing effects that these applications may experience on dual-core processor systems, by periodically adjusting the core time-stamp-counters, so that they are synchronized.
    Heres the link http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_871_13118,00.html

    OK, well - I installed Tiger back on a separate disk and will reboot into that when I want to watch a movie. Cheers, all.

  • Archive/ purge those material that have already flag for deletion

    hi guys,
    how can i delete the materials that have already flag for deletion? Even when i archive in MM71 and run MM72,it shows that the material has been 'completely deleted' but when i check in MM03,the material is still there. Anyone has any suggestion??

    Dear Nur,
    Please go to this link
    https://www.sdn.sap.com/irj/sdn/crphelp
    or
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement&
    If there's no store document available , it seems like your deletion process is not success.
    Please check your customizing. what comes first-->delete or store?
    also check whether the job is start automatically for store or delete process.
    Also ask your basis team about the Content Repository in customizing
    Regards,
    w1n

  • Updating record that exist in master data target but not master data sourc

    HI,
    I have PLANT key value "0004" that exist in my master data target ZPLANT, but this value has never sended by my source system, it was added only when I loaded my Infoprovider.
    My problem is that  this key value "0004" haven't text, and I would like put automatiquely the text of another value '0005' for this value '0004'.
    I'm in BI7 for information.
    Do you have any idea please? ABAP, Start routine or End routine?
    Andcould you give me please the ABAP code to do that?
    Radj.

    Thank you for your answer, but the source system doesn't contain the value '0004'.
    Can'I add this value while loading ZPLANT master data from source system?
    If yes, How can'I do it, and How can I maitain (automatiquely not manually) the text of '0004' key value?
    PS:
    The text of '0004' key value is the same as the text of '0005' key value'.
    Thank you.
    Radj.
    Edited by: Radjech Radjech on Jul 26, 2009 8:53 AM

  • Stuck on sql query to find parent records that have the same child records

    Oracle 10gR2 Enterprise Edition.
    Hi,
    I'm trying to write some logic to look for records in a parent table, which have the exact same values in a child table.
    This is part of a bigger query, but I'm stuck on this part for now, so I've mocked up some simplified tables below to capture the core of the
    problem I'm stuck on.
    Let say I've got a parent table Manager, a child table Employee and there's a many to many relationship between them.
    The aptly named Join_Table handles the relationship between them. So one manager can manage many employees, one employee can be managed by
    many managers.
    I've a feeling this is stupidly easy, but I seem to be suffering from a bad bout of brain freeze today!
    -- parent table
    CREATE TABLE manager (
    id      number primary key,
    name      varchar2(100));
    -- child table
    CREATE TABLE employee (
    id          number primary key,
    name      varchar2(100));
    -- link table
    CREATE TABLE join_table (
    manager_id          NUMBER,
    employee_id      NUMBER,
    CONSTRAINT join_table_pk PRIMARY KEY (manager_id, employee_id),
    CONSTRAINT manager_fk FOREIGN KEY (manager_id) REFERENCES manager(id),
    CONSTRAINT employee_fk FOREIGN KEY (employee_id) REFERENCES employee(id)
    -- Insert some managers
    INSERT INTO manager (id, name) VALUES (1, 'John');
    INSERT INTO manager (id, name) VALUES (2, 'Bob');
    INSERT INTO manager (id, name) VALUES (3, 'Mary');
    INSERT INTO manager (id, name) VALUES (4, 'Sue');
    INSERT INTO manager (id, name) VALUES (5, 'Alan');
    INSERT INTO manager (id, name) VALUES (6, 'Mike');
    -- Insert some employees
    INSERT INTO employee (id, name) VALUES (101, 'Paul');
    INSERT INTO employee (id, name) VALUES (102, 'Simon');
    INSERT INTO employee (id, name) VALUES (103, 'Ken');
    INSERT INTO employee (id, name) VALUES (104, 'Kevin');
    INSERT INTO employee (id, name) VALUES (105, 'Jack');
    INSERT INTO employee (id, name) VALUES (106, 'Jennifer');
    INSERT INTO employee (id, name) VALUES (107, 'Tim');
    -- Insert the links
    -- John manages Paul, Simon, Ken
    INSERT INTO join_table (manager_id, employee_id) VALUES (1, 101);
    INSERT INTO join_table (manager_id, employee_id) VALUES (1, 102);
    INSERT INTO join_table (manager_id, employee_id) VALUES (1, 103);
    -- Bob manages Paul, Simon, Kevin, Jack
    INSERT INTO join_table (manager_id, employee_id) VALUES (2, 101);
    INSERT INTO join_table (manager_id, employee_id) VALUES (2, 102);
    INSERT INTO join_table (manager_id, employee_id) VALUES (2, 104);
    INSERT INTO join_table (manager_id, employee_id) VALUES (2, 105);
    -- Mary manages Jennifer, Tim
    INSERT INTO join_table (manager_id, employee_id) VALUES (3, 106);
    INSERT INTO join_table (manager_id, employee_id) VALUES (3, 107);
    -- Sue manages Jennifer, Tim
    INSERT INTO join_table (manager_id, employee_id) VALUES (4, 106);
    INSERT INTO join_table (manager_id, employee_id) VALUES (4, 107);
    -- Alan manages Paul, Simon, Ken, Jennifer, Tim
    INSERT INTO join_table (manager_id, employee_id) VALUES (5, 101);
    INSERT INTO join_table (manager_id, employee_id) VALUES (5, 102);
    INSERT INTO join_table (manager_id, employee_id) VALUES (5, 103);
    INSERT INTO join_table (manager_id, employee_id) VALUES (5, 106);
    INSERT INTO join_table (manager_id, employee_id) VALUES (5, 107);
    -- Mike manages Paul, Simon, Ken
    INSERT INTO join_table (manager_id, employee_id) VALUES (6, 101);
    INSERT INTO join_table (manager_id, employee_id) VALUES (6, 102);
    INSERT INTO join_table (manager_id, employee_id) VALUES (6, 103);
    -- For sanity
    CREATE UNIQUE INDEX employee_name_uidx ON employee(name);So if I'm querying for manager John, I want to find the other managers who manage the exact same list of employees.
    Answer should be Mike.
    If I'm querying for manager Mary, answer should be Sue.
    This query will give me the list of managers who manage some of the same employees as John, but not the exact same employees...
    SELECT DISTINCT m.name AS manager
    FROM manager m, join_table jt, employee e
    WHERE m.id = jt.manager_id
    AND jt.employee_id = e.id
    AND e.id IN (
         SELECT e.id
         FROM manager m, join_table jt, employee e
         WHERE m.id = jt.manager_id
         AND jt.employee_id = e.id
         AND m.name = 'John')
    ORDER BY 1;I thought about using set operations to find managers whose list of employees minus my employees is null and where my employees minus their list of employees is null. But surely there's a simpler more elegant way.
    Any ideas?
    Btw, I need to run this as a batch job against tables with >20 million rows so query efficiency is key.

    What about...
    WITH manager_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id
      AND   m.name = :P_MANAGER)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    ), all_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    SELECT a.*
    FROM   manager_list m,
           all_list a
    WHERE  m.employees = a.employeesWould be easier in 11g, but I don't have an installation here so this is based on 10g.
    Cheers
    Ben

  • Inserting records that have a timestamp

    I have a table with field1 as "timestamp with timezone". The bulk records I am trying to load have timestamp format = "YYYY-MM-DD HH24:MI:SS.FF". I altered the session nls_timestamp_format to "YYYY-MM-DD HH24:MI:SS.FF", but get 'bad month' when loading the tables. If I add the (to_timestamp(2005-02-25 14:12:22.003222)), I can load the record without an error. I don't want to add the 'to_timestamp to thousand of records. How can I alter the nls_timestamp_format and it allow me to insert all the records.
    Thanks in advance

    what according to you represents the current record?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Trying to find a record that does not have an event created for it

    Post Author: tzinser
    CA Forum: Formula
    A little background on how it works....
    We create a record, and everytime it is created, a number of "events" within that record are automatically created.  The specific event I am trying to run a report on is "REC".  I can run a report and get the information entered into the REC event no problem, but my problem is that if someone deletes the "REC" event it does not show up in my report.
    So my question is, what is the best way to write a function that displays all records that have the "REC" event, and all records that the "REC" event is missing.
    I'm using the generic funtion {EVENT.EventCode} = "REC"  right now....any suggestions?

    Post Author: tzinser
    CA Forum: Formula
    Okay, I left off a lot of important information...
    I'm using two tables
    TWDATA
    EVENT
    From TWDATA I'm pulling the fields TWDATA.OrderNumber and TWDATA.DisbursementDate
    From EVENT I'm pulling the fields EVENT.EventCode and EVENT.CompletedDate
    The two tables are linked by OrderNumber.

Maybe you are looking for