How to calculate AGE from two different date fields

hi
I need to calculate AGE from two different date fields.
Can some help me how to do, when i try to do substraction formula it is showing error.
Thank You
Manu

Manu wrote:
Hi
Both fields are in date format only, i need to calculate no . of days between two different dates
Thanks
ManuThe reason for the question about the format of the column is because the simplest solution only works on DATE columns. Others have mentioned this here, but if you want the difference between two date fields, you can use this formula:
TIMESTAMPDIFF(SQL_TSI_DAY, date_column1, date_column2)
The above being said, you still didn't tell me what you did, or what error message you received. So again, if the above formula didn't work, what did you do? Where did you put the formula? What was the exact syntax you used? What was the error message you got?
Please don't make us work more than we need to. Answer all the questions in your next post. Thanks.

Similar Messages

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • How to create Analysis from two different subject areas with diff models

    Hello,
    I have problem with create analysis from two different areas with two different models (Model Star and Snowflakes) build in BI Admin tools.
    First Model A = Subject Area A have one fact tables (with measures) and three dimensions tables (Model Star)
    Second Model B = Subject Area B have one fact table (no measures) and five dimensions tables (Model Snowflakes).
    I'm looking solutions how I can give good results. In this case I can't use UNION, INTERSECT etc., because this models haven't the same number column and data type?
    whether it is possible to do in OBIEE?
    Please help me
    Kind regard
    robix

    Hi
    One thing to understand is that if your are imagining having two Subject Areas (SAs) displayed and then dragging columns from each into your Request without any preparation, then no, that can't be done. You would need to do a join in the BMM layer and expose the column from the second Subject Area in the presentation layer.
    But if you indeed interested in UNION (or intersect) queries, then do this:
    Build your first query in the first SA in the usual manner. Note the number of columns and the data types of each column.
    Now at the bottom of the Criteria workspace, there is a button called "Combine with similar request." Click it.
    Select your second SA. You will note that the outlines of the columns in your first query appear. This is to remind you that the number of columns in this second query must be the same as in the first. It also shows the data type of each column for the same reason.
    Once you select your columns and your filters, click on result. (Oh, you will also need to decide what kind of combination you want -- click on the dropdown.) The result will be a new Request that has data from both SAs in the query and combined in the manner you select (union, intersect, etc.)
    That should give you a start.
    http://obiee101.blogspot.in/2010/08/obiee-combine-with-similar-request.html -- Read this link this is good one to understand with screen shots. -- OBIEE 10g
    http://oraclebiee11g.blogspot.in/2011/01/querying-across-multiple-subject-areas.html -- OBIEE 11g
    Award Points it is useful.
    Thanks
    satya

  • Plotting x and y axis from two different data

    Hi everyone,
    I've just started using LabView on my new job. My new task is to create a VI to display a plot an XY graph from two data. How do I actually assign the two different data (X and Y axis resepctively)and plot them out on a same graph??
    Please help me out... my job is on the line!

    Other may post an example for you.
    I will tell how to find this and many other answers.
    Do a "Find Examples" from either the LV open screen or from the Help drop down.
    LV ships with examples that demonstrate almost every basic operation.
    One of the big benifits of these examples is that they work! If they do not, NI is interested in finding which ones do not.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to sync files from two different subscriptions in two different CC desktop folders

    HI,
    I have two CC subscriptions, one for work and one personal. I ran the work subscription in two computers at work and at home (when I need to work from home.) The problem  I find is that there is not two different CC folders for each subscription. When I log out from my work subscription, all my files for that subscription go away. Then when I log in again, they whole syncing process starts all over again. I chose to have two different subscriptions so not to mix my personal work with my work's. Is there a way to have a CC folder on my desktop for each subscription? In this way, when I log out from one account and go to the other the files of the account I just logged out don't get replaced for the files of the account I  just logged in.  Any help with this will be greatly appreciated.

    Hi,
    I just want to let you know what you should be seeing when using 2 accounts.
    Account one:
    1. Log in with Adobe ID for account one
    2. Files sync to Creative Cloud files which is located in your home directory on Mac or Windows.
    3. Log out of account one, Creative Cloud now displays the log in panel.
    Account two:
    1. Log in with Adobe ID for account two
    2. Files sync to account 2's Creative Cloud files which is located in your home directory on Mac or Windows. (Account one's Creative Cloud Files folder is re named)
    Thing to check for are:
    After you logged in to account two, the Creative Cloud folder for account 1 should now be renamed, can you check this please to make sure it has.
    The same is true is you log back in to account one, account two's Creative Cloud folder will be renamed.
    The data should not have to fully re-sync ever time you log out of account 1 and then into account 2, however, can you be sure that the data is actually re downloading. ie; you had 5GB of data in account one and when you log into account 1 the whole 5GB of data is re downloading?, could you check this?
    The Creative Cloud files panel will display "Syncing" for a short while is you switch accounts, this is normal and means the application is reading data on disk and data on the server checking for changes/added files etc. This is not re-downloading all of your data, it is simply checking.
    You are able to move the Creative Cloud files folder to any location on your local hard drive via the Creative Cloud prefs.
    Thanks
    Warner

  • Comapre 2 same channels from two different dat filea

    Hi ,
    I want to compare the wave forms of two same channels names (in my sample data which is in attachment, the same channel names are S1KNSLLE00H3DSZP) from different dat  file(S2100044 and S2100041) .
    Load the 2 dat files from navigator.
    Come to report and open two 2d axis systems to see the wave forms of two different channels ( Like in attachment result.jpg)
    I need an autosequence to do the same for all the channels for 2 dat files automatically.
    Attachments:
    cmp.zip ‏1967 KB
    result.JPG ‏158 KB

    Hi RSH,
    I appreciate you posting 2 data files and the jpg, but I'm afraid I still have lots of questions before I can advise you.  You sent 2 *.dat files which each had 1 channel in them named "Data", which is different from your email text and the jpg you posted.  Will your data sets typically have many channels in them?  Your posted *.dat files had no time channel and the "Data" channel was not a waveform channel, yet the 2 different "Data" channels were different lengths.  Do you want to plot your channels vs. the array index all the time (as is shown in your jpg)?
    Do you want to have N sheets in REPORT, one for each channel?  Why don't you want to have both "S1KNSLLE00H3DSZP" channels as curves with different colors on the same graph-- wouldn't that make it easier to compare them?
    When you drag over the data channel onto a REPORT graph, you will get a reference like "[1]/Data" or "[2]/Data", which is exactly what you want to compare the "Data" channel from 2 arbitrary data files (note that the file name does not show up in the channel references).  So it seems to me that the REPORT layout you sent a jpg of already satisfies what you're asking us to create for you.  Why do you need a script at all?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • HT201272 How can i download from two different accounts without the 90 day rule?

    I have two Apple IDs because I had lost the other one and made a new one. I recently bought a new computer and went I also found my old password for my first ID. I downloaded my purchased from the first one and now it is telling me I have to wait 90 days to download from a different account. What do I do?

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • How to move values to two different structured field symbols

    Hi All,
                I have to push my data from one field symbols to another both having different structure, but same data type
    with regards,
    Thambe

    try moving the data with write statement. SAP says write statement dose the type cast for different data types.
    Hope this helps.
    FY

  • How do you display data from two different data-sets on one list

    I have a data-set that is displaying properly; I would like to add another data-set to the other portion of the form. 
     The first part of the data set has Product information (Product-Name, Product_number, etc),
     The second portion of the data-set has information like (Product-campaign, Product-Sales, etc)
    The two data-sets  are mutually exclusive

    Hi xitum,
    As
    Patrick  Hurst mentioned, if the several tables didn't have any relationship with each other and you want to put all the information together to display in one report, you need to add several tablix/list in the same report and each tablix/list to display
    the data from each table.
    If the several table have a same relationship field you can use the
    lookup function to get the other maped fields display in the same tablix/list.(this function supportted on the SSRS 2008 r2 and later version).
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • HT2534 How can i download from two different store with the same account?

    I live in both countries but my credit card is registered in a french bank, therefore it is not recognised by the Aussie store on itunes. There are apps or music i want to get form the Aussie store as well as music and other apps from the french one...
    Is it possible to have two stores under the same account????? I wish apple could fix this, which could result in more spending as you can buy from different store!

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • How to compare signals from two different .tdms files?

    i'm developing a lie detection system in labview.so inorder for that i need to compare the threshold physiological signals from the .tdms file with the signals i acquire continuelsy from the subject for each question asked.i use respiration monitor and heart beat monitor together with the sensorDAQ to acuire the physiological signals.so which are the function i should make use of?i have the following toolkits
    1. advanced signal processing toolkit
    2. adaptive filter toolkit
    3. digital filter design toolkit
    4. biomedical toolkit
    please give me advise on this.
    thank you.
    Solved!
    Go to Solution.

    Lie detector systems (polygraphs) generally work by looking at the physiological responses to the own subjects baseline, and do this in real-time.  You could use a file that represents the stored "baseline" for the subject, but the overall environment, circumstances, general state of the subject, etc. may not be similar enough to easily see subtle changes.
    From the stored file, you might determine a set of parameters or thresholds that indicate "normal, relaxed" for each signal.  You could read the file into your LabVIEW program, process each channel, and save these parameters.  Then when you have the new data, you can read the new data file in and process it in a similar way and then determine whether the parameters are outside the limits that you established for a "lie".
    You may get more responses to this question if posted in the Biomedical User Group
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

  • To calculate variance from two different columns

    Hi
    I have a table like this
    create table temp1
    (f_name varchar2(100),
    f_month_Year Varchar2(10),
    f_amount integer
    Records in this table will be like this:
    f_name          f_month_Year f_amount
    Ajay 092007      500
    Bhavani 092007      700
    Bhavani 102007      200
    Ajay 102007      100
    I would like to get the Output like following:
              092007(Previous Month) 102007(Current Month) Variance
    Ajay 500                100           400
    Bhavani 700                200           500
    the variance should be precalculated in the query itself.
    Please help me on this.
    Regards
    Sankar

    LAG
    <br>
    <br>
    Example:
    <br>
    <br>
    SQL> select * from t;
    NAME                 DT                          AMT
    Ajay                 092007                      500
    Bhavani              092007                      700
    Bhavani              102007                      200
    Ajay                 102007                      100
    SQL> select name,curr,pre,pre-curr var
      2  from
      3    (select name,
      4         lag(amt) over(partition by name order by to_date(dt,'mmyyyy')) pre,
      5        amt curr,dt
      6     from t
      7    )
      8  where dt = to_char(sysdate,'fmmmyyyy');
    NAME                       CURR        PRE        VAR
    Ajay                        100        500        400
    Bhavani                     200        700        500                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to calculate the days with a date field

    I need to make a query that shows the number of flown days at the end of the month for the whole fleet, given a date that represents one day within that month.
    I would appreciate all the help I can get
    thanks in advance

    Hi,
    I am not sure if I interpreted your question correctly, but are you looking for counting for number of days between two days?
    If yes, see if the following example query helps you.
    SQL>select to_date('30-Jun-2003') - to_date('30-May-2003') from dual
    - this returns 31.
    If not, could you please give more details of your requirement with an example?
    -Savitha.

Maybe you are looking for