Number of months in two variables

Hello

In the procedure with 2 parameters to the format YYYYMM (year and month), I have musto to know how many months there is between two variables, example:

201112 and 201111 about a month ago
201112 and 201110 two months ago

I tried to multiply year by 12 and months in summary and to make a difference, but no job, some body have some idea


using 9.2.02

MONTHS_BETWEEN

Tags: Database

Similar Questions

  • Number of months in two dates

    Hi Experts,

    I want every month in two dates:

    I have change in output.

    Select TO_DATE (' 02/02/2003 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 02/02/2003 ', ' dd/mm/yyyy') as double end_date

    Description: I have a month (2)

    Desired output

    months of the year

    ----    -----

    2 of 2003

    Select TO_DATE (' 2003/02/25 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 2003/03/01 ', ' dd/mm/yyyy') as double end_date

    Description: I have two months (2.3)

    Desired output

    months of the year

    ----    -----

    2 of 2003

    3 2003

    Select TO_DATE (' 28/12/2003 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 2004/04/01 ', ' dd/mm/yyyy') as double end_date

    Description: I have 5 months (2003:12, 2004: 1, 2, 3, 4)

    Desired output

    months of the year

    ----    -----

    12 2003

    2004 1

    2 2004

    2004 3

    4 2004

    Thanks in advance

    BANNER

    ----------------------------------------------------------------

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - production

    Post edited by: Ràmio

    This...

    -Started test data

    WITH qry AS

    (select TO_DATE (' 02/02/2003 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 02/02/2003 ', ' dd/mm/yyyy') as double end_date)

    UNION ALL

    Select TO_DATE (' 2003/02/25 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 2003/03/01 ', ' dd/mm/yyyy') as double end_date

    UNION ALL

    Select TO_DATE (' 28/12/2003 ', ' dd/mm/yyyy') as start_date, TO_DATE (' 2004/04/01 ', ' dd/mm/yyyy') as double end_date

    )

    -Test data that ended

    SELECT start_date,

    End_date,

    EXTRACT (YEAR OF ADD_MONTHS (start_date,(LEVEL-1))) year.

    EXTRACT (MONTH FROM ADD_MONTHS (start_date,(LEVEL-1))) Lun

    OF qry

    CONNECT BY LEVEL<=>

    AND PRIOR start_date = start_date

    AND PRIOR DBMS_RANDOM. VALUE IS NOT NULL.

    OUTPUT:-

    ========

    START_DATE END_DATE YR LUN

    ---------- --------- ---------- ----------

    2 FEBRUARY 03 2003 2 FEBRUARY 03 2

    25 FEBRUARY 03 2003 1 MARCH 03 2

    25 FEBRUARY 03 2003 1 MARCH 03 3

    28 DECEMBER 03 2003 1 APRIL 04 12

    28 DECEMBER 03 2004 1 APRIL 04 1

    28 DECEMBER 03 2004 1 APRIL 04 2

    28 DECEMBER 03 2004 1 APRIL 04 3

    28 DECEMBER 03 2004 1 APRIL 04 4

    8 selected lines

    Thank you

    Ann

  • Calculation of the number of months

    Hi guys,.

    How to calculate the number of months between two dates

    Opening date: 20/02/2014

    Closing date: 20/03/2015

    Terms of months: 13

    How I get the year and subtract and multiply by 12 and then add it to the difference of the month? Sorry that I am not well versed in the scripts.

    Thanks in advance.

    In this way, you have provided the example. You can change the constant string to the necessary code to get the value of a field. You can add additional to prevent code by using the code until the two fields have a non-null value.

  • Compilation error in tables starting with "number of months".

    Our project currently uses two entities: global (the family) and the person.

    I'm unable to compile a document when using a variable number that begins with "the number of months the person...". "in a table. For example, I tried to use this table to set the period of time to 0 in case "the person" does not request specific supplement type:

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Conclusion of the table:
    the number of months that the person will receive the supplement for assistance with associated transportation costs and visitors who attend the related program of employment

    Return value:
    the number of months the person to receive further assistance for transport and attendance costs to participate in the program related to employment

    If the following attribute is set to True:
    Supplement of the person is using to transport costs and traffic associated with participating in the program related to employment

    Otherwise:
    * 0 *
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------


    The error I'll be back when you try to compile said: error after "number of". Found: «months that the person has applied to receive a supplement...» ». Expected: Unable to find a relationship of belonging to the entity "the person".

    However, I am able to compile the same attribute when it is written in the typical word format.



    I found two workaround solutions:

    (1) I cannot change variables numbers as follows: "the requested person several months to receive a supplement...» »
    (2) I can compile and generate if I write the attribute at the global level: "the number of moths the supplement for assistance... will be issued".

    Is anyone know why I get the above error?



    Thank you
    Ashley

    Have a variable whose text begins by "the number of ' is not a problem. I think that your problem here, is that the variables have not been declared.

    I just tried the table you have described above. When all variables are declared, they compile not very well. When one or both of the variables have not been reported, I got an error message similar to the one you have seen.

    See you soon,.
    Jasmine

  • Need to query to find missing months between two dates.

    A bank customer a monthly overview of databases (in the tens of millions of accounts)

    The data are sent with a line per account each month.  It is stored in a table called "ACCOUNTS_TAB".

    Fields on registration, which

    Column

    Description

    Example of format.

    * YRMTH-1

    Year and month of the snapshot

    6-character numeric, 4-digit year added to months of 2 digits, example 201301, 201311

    * AccountID

    Unique identifier for an account.

    Integer, example 100098322

    Opening balance - 1

    Initial account balance at the closing of the previous month

    $30000

    Closing balance - 1

    The account balance at the end of the month of closing

    $34200

    Class-1 relative to investments

    .....

    ...

    .....

    ......

    .....

    Many more columns, two favorites (*) columns are alone, that you will need for the query. There are no columns to tell when an account is closed, or has just opened, and not separate "master account" - you use this single table for your query that results.

    The table was in place from 200301, so many accounts have dozens of lines, if they have been open for many years and other only 1 or 2 ranks, if new.

    Write a query to give just a list of accountDs that meet the following criteria.

    1. 1) has a record for specific 201503
    2. 2) was also a record for the month specific 201602
    3. 3) missing one or several months between these two records.

    A good account which was opened from 201503 to 201602 inclusive would of course have lines for

    201503

    201504

    201505

    201506

    201507

    201508

    201509

    201510

    201511

    201512

    201601

    201602

    It's good to hardcode the month of departure (201503), end of month (201602) and the actual number of months between them (10 exclusive or 12 inclusive) as part of your query.

    Once again the account must meet all 3 criteria to be an account issue.  If only, they have a partial set of these documents but do not have the month of departure, or is not the end of the month, it is not a problem, only when they have so specified and end early and not a full between game.


    Help, please!

    Maybe this...

    -----

    -The Dataset for the test begins

    WITH dataset (ACCOUNT_NO, DATES)

    AS (SELECT 100, DOUBLE 201503

    UNION ALL

    SELECT 100, DOUBLE 201504

    UNION ALL

    SELECT 100, DOUBLE 201505

    UNION ALL

    SELECT 100, DOUBLE 201506

    UNION ALL

    SELECT 100, DOUBLE 201507

    UNION ALL

    SELECT 100, DOUBLE 201508

    UNION ALL

    SELECT 100, 201509 OF THE DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201510

    UNION ALL

    SELECT 100, 201511 OF THE DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201512

    UNION ALL

    SELECT 100, 201601 DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201602

    UNION ALL

    SELECT 200, DOUBLE 201503

    UNION ALL

    SELECT 200, DOUBLE 201504

    UNION ALL

    SELECT 200, DOUBLE 201505

    UNION ALL

    SELECT 200, DOUBLE 201506

    UNION ALL

    SELECT 200, DOUBLE 201508

    UNION ALL

    SELECT 200, DOUBLE 201509

    UNION ALL

    SELECT 200, DOUBLE 201510

    UNION ALL

    SELECT 200, DOUBLE 201511

    UNION ALL

    SELECT 200, DOUBLE 201512

    UNION ALL

    SELECT 200, 201601 DOUBLE

    UNION ALL

    SELECT 200, DOUBLE 201602

    UNION ALL

    SELECT 300, DOUBLE 201503

    UNION ALL

    SELECT 300, DOUBLE 201504

    UNION ALL

    SELECT 300, DOUBLE 201505

    UNION ALL

    SELECT 300, DOUBLE 201506

    UNION ALL

    SELECT 300, DOUBLE 201507

    UNION ALL

    SELECT 300, DOUBLE 201508

    UNION ALL

    SELECT 300, DOUBLE 201509

    UNION ALL

    SELECT 300, DOUBLE 201510

    UNION ALL

    SELECT 300, DOUBLE 201511

    UNION ALL

    SELECT 300, 201601 DOUBLE

    UNION ALL

    SELECT 300, DOUBLE 201602

    UNION ALL

    SELECT 400, DOUBLE 201504

    UNION ALL

    SELECT 400, DOUBLE 201505

    UNION ALL

    SELECT 400, DOUBLE 201506

    UNION ALL

    SELECT 400, DOUBLE 201507

    UNION ALL

    SELECT 400, 201508 DOUBLE),

    -The Dataset to test ends

    -Hand with clause begins

    ResultSet

    AS (SELECT account_no,

    CASE

    WHEN COUNT)

    CASE WHEN dates IN (201503, 201602) THEN 1 END)

    COURSES (PARTITION BY account_no) = 2

    AND (COUNT (DISTINCT SUBSTR (dates, 4)))

    COURSES (PARTITION BY account_no) = 12

    OR COUNT (DISTINCT SUBSTR (dates, 4))

    COURSES (PARTITION BY account_no)<>

    AND COUNT (DISTINCT SUBSTR (dates, 1, 4))

    (PARTITION BY account_no) > 1

    THEN

    « Y »

    ON THE OTHER

    « N »

    END

    FLG

    THE dataset---> replace with your table name

    GROUP BY account_no, dates)

    SELECT DISTINCT Account_no

    FROM THE result set

    WHERE flg = 'Y ';

    -Hand with the ends of the clause

    ACCOUNT_NO

    -----------------------

    100

    300

    200

    See you soon,.

    Manik.

  • Dynamic calculation of the number of days between two dates in a table

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    Hi BO123,

    BO123 wrote:

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    one of the way to do this by calling ajax on change of end_date.

    See the sample code given below to fetch the resulting duration and making the field read only after calculation

    Step 1: Change your page

    under CSS-> Inline, put the code below

    .row_item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    }
    

    Step 2: Create on demand Ajax process I say CALC_DURATION

    Please check Procces Ajax, see line 6.7 How to assign a value to the variable sent by ajax call

    Declare
      p_start_date  date;
      p_end_date    date;
      p_duration number;
    Begin
      p_start_date  := to_date(apex_application.g_x01);
      p_end_date    := to_date(apex_application.g_x02);
    
       --do your calculation and assign the output to the variable p_duration
      select p_end_date - p_start_date into p_duration
        from dual;
    
      -- return calculated duration
      sys.htp.p(p_duration);
    End;
    

    Step 3: Create the javascript function

    Change your page-> the function and the declaration of the Global Variable-> put the javascript function

    You must extract the rowid in the first place, for which you want to set the time, see line 2

    assuming f06, f07 and f08 is the id of the start date, and end date columns respectively, and duration

    See no line no 8 how set the value returned by the process of ajax at the duration column

    Replace your column to the respective column identifiers in the code below

    function f_calulate_duration(pThis) {
      var row_id  = pThis.id.substr(4);
      var start_date = $('#f06_'+row_id).val();
      apex.server.process ( "CALC_DURATION", {
      x01: start_date,x02: $(pThis).val()
    }, { success: function( pData ) {
    // set duration to duration column
    $('#f08_'+row_id).val(pData);
    // disable duration column
    $("#f08_" + row_id).attr("readonly", true).addClass('row_item_disabled'); }
    });
    }
    

    Step 4: choose the end date call the javascript function

    Go to report attributes-> edit your Date column end-> column-> Attrbiutes element attributes-> put the code below

    onchange="javascript:f_calulate_duration(this);"
    


    hope this helps you,

    Kind regards

    Jitendra

  • Count of the number of months with unpaid for the last six months

    Hello

    I now table to store the daily presence of each employee

    ATTENDANCESHEET

    EMPID

    PAYROLLDATE

    UNPAID

    1

    10/01/2013

    6

    1

    10/02/2013

    2

    1

    11/01/2013

    0

    1

    11/02/2013

    0

    1

    12/01/2013

    0

    1

    12/02/2013

    0

    1

    01/01/2014

    0

    1

    01/02/2014

    0

    1

    02/01/2014

    0

    1

    02/02/2014

    0

    1

    03/01/2014

    45

    1

    03/02/2014

    0

    2

    03/01/2014

    0

    2

    03/02/2014

    0

    I want to get the number of months used unpaid in the past 6 months (excluding the current).

    If the month of payroll, I'm in treatment is 4, 2014, I spend 4 as payrollmonth and 2014 as payroll year

    The application must check the latest 6 month data and number of months for which there is any unpaid value

    In the case above for month 4, 2014, the power required is

    EmpID

    County

    1

    2

    2

    0

    I use oracle 10g

    EXAMPLES OF DATA

    create the table attendancesheet as

    (

    Select 1 as empid, to_date (January 10, 2013 ',' DD/MM/YYYY ') as payrolldate, 6 paid by union double all the

    Select 1 as empid, to_date (10 February 2013 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (January 11, 2013 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (February 11, 2013 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (12 January 2013 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (February 12, 2013 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (1 January 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (February 1, 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (January 2, 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (February 2, 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 1 as empid, to_date (3 January 2014 ',' DD/MM/YYYY ') as payrolldate, 45 paid by union double all the

    Select 1 as empid, to_date (3 February 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid by union double all the

    Select 2 as empid, to_date (3 January 2014 ',' DD/MM/YYYY ') as payrolldate, 0 as default all the double union

    Select 2 as empid, to_date (3 February 2014 ',' DD/MM/YYYY ') as payrolldate, 0 paid double

    );

    Help, please

    Hello

    So, you want to count the distinct months for 6 months before (not included) the given month; is this fair?

    Here's one way:

    VARIABLE month VARCHAR2 (2)

    Year VARIABLE VARCHAR2 (4)

    EXEC: months: = '4';

    EXEC: year: "2014"; =

    WITH got_end_date AS

    (

    SELECT TO_DATE (: month |) '/' || : year

    , ' MM/YYYY ".

    ) AS end_date

    OF the double

    )

    SELECT a.empid

    , COUNT (DISTINCT

    CASE

    WHEN a.unpaid > 0

    THEN TRUNC (a.payrolldate, 'MONTH')

    END

    ), Cnt

    Of attendancesheet one

    JOIN e-got_end_date WE a.payrolldate > = ADD_MONTHS (e.end_date-6)

    AND a.payrolldate< >

    GROUP BY a.empid

    ORDER BY a.empid

    ;

    If you use a WHERE clause to exclude the lines with some outstanding = 0 (or unpaid is NULL), then you would get no output for employees like empid = 2 in this example.  A WHERE clause ignores an entire line, so I used an expression BOX just a value.

  • Number of weeks between two dates that are in the same or different year

    Hello

    How to calculate the number of weeks between two dates?

    for example. "" "17-mar-2013' and June 27, 2013" or June 15, 2013 "and" 25-mar-2014


    Thanks in advance.

    lukx

    Hello

    Looks like your date range is incorrect.

    Please try the below.

    SQL >-front right

    SQL > select D2 - D1 "days."

    2 round ((D2-D1)/7.0) "weeks."

    3 round (Months_between (d1, d2), 0) 'months '.

    (select 4

    5 TO_DATE ('20121201', 'YYYYMMDD') D1, D2 TO_DATE ('20130116', 'YYYYMMDD')

    6 from two

    (7) date_range;

    Elapsed days weeks months

    ------------ --------- ---------

    46         7         1

  • How to get the days and months when two dates are given

    Hi all

    I have a requirement where I need to return the number of months and days between two given dates.
    I have no need to take account of the year as the difference in dates is always less than a year

    I have 28 June 2012 and January 31, 2013, as dates.

    I'm working on 10g

    When I select the double months_between(:a,:b) and provide the dates he gives me 7.09677
    I want to give only 7 months and 9 days, or what ever the exact days are.

    Your contributions are appreciated

    Try this:

    WITH t AS
    (SELECT TO_DATE('28-JUN-2012', 'DD-MON-YYYY') date1, TO_DATE('31-JAN-2013', 'DD-MON-YYYY') date2 FROM dual)
    SELECT TRUNC(MONTHS_BETWEEN(date2, date1)) months,
           date2 - ADD_MONTHS(date1, TRUNC(MONTHS_BETWEEN(date2, date1))) days
    FROM   t
    
  • Addition of two variables inside xslt

    Hi all

    I try to add two variables inside xslt. The result is written to a target node, but I am getting "Nan" in output.

    Here's my xslt.

    < name of xsl: variable = "Amount1" >
    < xsl: choose >
    < template test ='(po:ID = «Distributeur») and (po:TypeCode = "Text_products_base_price7")' >
    < xsl: value-of select = "po:Amount" / >
    < / xsl: When >
    < / xsl: choose >
    < / xsl: variable >
    < name of xsl: variable = "Amount2" >
    < xsl: choose >
    < template test ='(po:ID = «Distributeur») and (po:TypeCode = 'VAT') ">"
    < xsl: value-of select = "po:Amount" / >
    < / xsl: When >
    < / xsl: choose >
    < / xsl: variable >
    < name of xsl: variable = "Value TotalAmount" select = "$Amount1 + $Amount2" / >
    < customer: priceDistributorUnitInclVAT >
    < xsl: value - of select = "number ($TotalAmount)" / >
    < / client: priceDistributorUnitInclVAT >

    I want to add Amount1 and Amount2 and use it to map it to the target node.

    The entries on the way to the sum in a third variable. ?

    Kind regards
    Vikas

    Hi Vikas,

    You must include xsl: otherwise in your xsl: choose the clause, it seems to me that your state of health one of the variables will be always Nan and a number + Nan will always result in Nan.

    Look at this
    http://w3schools.com/xsl/xsl_choose.asp

    See you soon,.
    Vlad

    It is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts)
    https://forums.Oracle.com/forums/Ann.jspa?annID=893

  • REQ: script to calculate the number of months

    Looking for a script that will calculate the number of months between 2 dates (to 2 decimal points)

    or if there is a way to make a calculation of the number of months

    for example: if I go to google and say 75 days - months, it returns a value of 2.46

    That's what I'm looking for

    If anyone can help?

    with a calculation of date or number calculation?

    I tried # days / 365 x 12 but there is no decimal places.  right guard rounded up/down

    As mentioned in a month, the days are not constant throughout the year and change formula 28-31 days. How are you calculating the decimal value of the month?

    A year has 365 days, if she did then there would be no need for leap years and centuries jump.

    Calculation of a variable with the result of a calculation method is set to decimal.

    cDateFormat = "d-mmm-yyyy";
    var cStartDate = "January 1, 2000;
    var oStartDate = util.scand (cDateFormat, cStartDate);
    oStartDate.setHours (0, 0, 0, 000);
    var cEndDate = "January 15, 2000;
    var oEndDate = util.scand (cDateFormat, cEndDate);
    oEndDate.setHours (0, 0, 0, 000);
    nDiff var = oEndDate.getTime () - oStartDate.getTime ();
    Console.println ("end date:" + cEndDate);
    Console.println ("start date:"+ cStartDate ");
    Console.println ("difference in milliseconds:" + nDiff);
    Console.println ("difference in seconds:" + nDiff/1000);
    Console.println ("difference in minutes:" + nDiff / (1000 * 60));
    Console.println ("difference in hours:" + nDiff / (1000 * 60 * 60));
    Console.println ("difference in days:" + nDiff / (1000 * 60 * 60 * 24));
    Console.println ("difference in weeks:" + nDiff / (1000 * 60 * 60 * 24 * 7));
    Console.println ("difference over the years:" + nDiff / (1000 * 60 * 60 * 24 * 365.2524));
    Console.println ("difference in months:" + nDiff / ((1000 * 60 * 60 * 24 * 365.2524) / 12));  12 months in a year;

    End date: January 15, 2000
    Start date: January 1, 2000
    Difference in milliseconds: 1209600000
    Difference in seconds: 1209600
    Difference in minutes: 20160
    Difference in hours: 336
    Difference in days: 14
    Difference of weeks: 2
    Difference in years: 0.0383296591617194
    Difference in months: 0.45995590994063273

    Several turncate the decimal values scirpts because keeping them may not meet the need of specific calculation. You know that there are methods to roud until the next iniger, round.5 to the top and turnacate to the lower intiger.

    According to the date of departure, the values may be different:

    For a start date of February 1, 2000, 75 days would be 1,810 months but for a start date of 1 February 2001 75 days becomes 1,838 since the number of days of changes of February 29 to 28 and the number of days for the month of fractions varies from 26 to 27.

  • Assign the values of the two variables in a select statement

    I'm trying to set two variables in a select statement in my definition of the procedure. I get the error identifier not valid "ATTRIBUTE" running the following code.
    create or replace procedure tbl_auth (
    Email in varchar2,
    UserLevel out number)
    as
      v_Email varchar2(100) := lower(Email);
      v_login_chk number := 0;
    begin
     select UserLevel into p_UserLevel,
            v_login_chk into v_login_chk
     from tbl_User
     where eMail=v_Email  
    
    exception
     when no_data_found then
      UserLevel := 0;
    end tbl_auth;
    Can I not connect two different values to two different variables in the same select?

    Thank you

    Published by: jerry8989 on August 22, 2011 07:06

    Published by: jerry8989 on August 22, 2011 07:06

    change as follows:

     select UserLevel, v_login_chk into p_UserLevel,
            v_login_chk
    

    IN ONE ALONE is enough.

    BTW, don't you have "login Check" column in the "tbl_user"? If you do, your selection should be like this:

    ...
    select UserLevel, loginChk into /* check the column name in your table */
             p_UserLevel, v_login_chk
     from tbl_User
    ...
    
  • Problem comparing two variables to help assess variable

    Hello
    IAM using 10.1.3.3 designer ODI where in I have a case to compare two variables.
    IAM using evaluate variable for it as Var1 = #Var2
    My case is as below
    If
    Var1 = Var2
    flow goes to xxx
    on the other
    flow goes to yyy

    I was faced with number format exception when I stated as digital variables. I changed to alpha numeric and tried again. This time the exception has disappeared, but the comparison happens as expected. I have the variables satisfying the real condition (var1 = var2 = 1234). But still the flow occurs for the condition false, which indicates that the comparison goes as planned. My DB is oracle.
    Any suggestions on this are appreciated.
    Thank you
    Naveen.

    Published by: 798664 on November 9, 2010 02:24

    Project you drag and drop your var1 and var2 in refreshing fashion
    Now do drag var1 in evaluation mode and make the comparison

    It must also include the code in your project.

    That is to say var1 = #. Var2
    then implement your business logic

    Thank you
    Fati

  • Calculate the number of days between two dates

    Hello

    Can someone help please change my formcalc script to calculate the number of working days between two date fields.  My script currently calculates the total number of days between two dates, including the weekends which must be excluded from the total.

    If

    (HasValue (Start_Date1) & HasValue (End_Date1)) then

    $

    = Date2Num (End_Date1, "YYYY-MM-DD" "en_IE") - Date2Num (Start_Date1, "YYYY-MM-DD" "en_IE") + 1

    on the other

    ""

    endif

    Any help will be most appreciated.

    Thank you.

    Check...

    (1) you said that you put the script on the event «days1» calculate My sample imitates the variable names used in the original message, "Start_Date1" and "End_Date1". If the names of variables for the start and end dates are different, you will need to modify the script to account for these names.

    (2) the Date2Num functions in the calculation of the "totalDays" use the date format "YYYY-MM-DD". If your date habits differ from "YYYY-MM-DD" FormCalc will complain.

    Steve

  • How to plot two variables when neither are expressed in time?

    I know how to trace a variable against time, but how to plot two variables when neither one of them are time against each other. For example if I want to draw Let's force against remote what is the best approach to use?

    Thank you.

    Use an XY Chart. Use context-sensitive help to see the expected data type and refer to the examples. Consider what follows, don't forget to rename the scale labels and name:

Maybe you are looking for

  • Artists in dual display in my music - view artist

    Starting this week, no reason apparent, since I added new videos to tracks/music to my iTunes library, whenever I do (with the exception of two tracks), each was created as an artist in double (see example of Troye Sivan in image - artist on the left

  • activate Bluetooth Message profile (access map) with Z5 compact for Audi MMI

    Does anyone know if the Z5 Compact has the Protocol of card as I think to buy a Z5 to use with a new Audi A4 equipped Pack technology? My Aqua present M4 only accepts text messages to display.

  • Error 1317 when installing applications on Windows 7 Ultimate

    HelloI get an Error 1317 when you install the application on windows 7 ultimate.  Always when the application attempts to create menus.  Always the path c:\programData\Microsoft\Windows\Start Menu Some applications if they have a choice to not allow

  • Can I wait my MS-DOS programs to work under Windows 8?

    Out of curiosity I just installed Windows 8, 64 bit on my laptop which has Windows 7. I like to win. 8 fine. It works very well.  I don't understand what all the fuss is about. This comes from a 75 year old guy. QUESTION: I also have a couple of mach

  • Windows 8.1 error code 0xc0000034

    Hi all today I turned on my Razer Blade anda blue screen came up with the following on the screen: RecoveryYour PC needs to be repairedThe Configuration of Boot data file missing some required information.File: \BCDError code: 0xc0000034 You will nee