Comparison of characters in the form of dates

Hi all
10.2.0
I have a tbl table as
amt1, code, yearmon, amt2
1 10 10 2007 MAR
FEBRUARY 1 20 10 2007
FEB 2 10 30/2007
FEBRUARY 3, 10, 20, 2008
-----
It's the amt1 and amt2 are quantities for each month of belonging to different years.
But if I want to get the amt1 and amt2 until a beach then courses in nature, there is no comparison.

"Select code, sum (amt1 + amt2) from tbl where yearmon between ' April 2007" and 2008 FEB' code group;
then it does not give the desired result, because yearmon is a character.
How can I calculate amount until a given in this case range.

Concerning

I think this is what you need

create table tbl as (
select 1 code, 10 amt1, 10 amt2, '2007MAR' yearmon from dual union all
select 1, 20, 10 , '2007FEB' from dual union all
select 2 , 10 , 30 , '2007FEB' from dual union all
select 3 , 10 , 20 , '2008FEB' from dual )

SQL> select code , sum(amt1+amt2) from tbl
where to_date(yearmon, 'YYYYMON') between to_date('2007APR', 'YYYYMON') and to_date('2008FEB' , 'YYYYMON')
group by code;
2 3
CODE SUM(AMT1+AMT2)
---------- --------------
3 30

Kind regards
Ritesh

Published by: Ritesh Kumar S on January 1st, 2009 04:42

Tags: Database

Similar Questions

  • display 2 cloumn in the form of data

    I just want to be sure on the form of data segments to create uneven columns is the best way not to show two columns in the form of data

    You create asymmetrical columns by:-http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch06s04s05.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • TEXT in the form of data

    is it possibe (Version 11) for a cube ASO which will allow you to enter text in the form of data? Which means, I want to add a row of data to include the users name. I don't want to enumerate each username in a dimension
    Thank you

    The closest you'll get is typed measures, you can not directly enter data, but can have text values:-http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dtypmeas.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • SCalc formula in the form of data

    Are we able to enter a formula of summons for a range of columns instead of typing on the underside (specify each column) in the form of data?
    C4 = SCalc (col (1) + neck (2) + neck (3))

    NO, it is not possible

  • Content type of the form POST data REMAINS

    I'm trying to POST through a REST API that has a content type of the form data from vRO. Someone at - he no idea how I need to put in shape the body of the request in the vRO? At this point, im just build a JSON object then stringifying the object and sending it offshore.

    {key1:value1, key2:value2}

    var body = new Object();
    body.api_key = apiKey;
    body.AssignedSupportLevel = assignedSupportLevel;
    body.Category = category;
    body.CustomersUFID = customersUFID;
    body.Description = description;
    body.LastModifiedByEmail = lastModifiedByEmail;
    body.OwnedByTeam = ownedByTeam;
    body.Portfolio = portfolio;
    body.Priority = priority;
    body.Service = service;
    body.Source = source;
    body.Subcategory = subcategory;
    body.Summary = summary;
    
    
    var request = restHost.createRequest("POST", "/myitapi/v1/tickets", JSON.stringify(body));
    request.contentType = "multipart/form-data";
    
    
    return request.execute();
    

    Thanks for the reply Ilian. I was able to format the body of the request such as specified in the RFC as stated below. I also wrote an action to do the formatting for me that I have attached. I hope it helps someone else.

    var body = "--WebKitFormBoundary7MA4YWxkTrZu0gW\r\n" +
    "Content-Disposition: form-data; name=\"api_key\"\r\n\r\n" +
    apiKey + "\r\n" +
    
    "--WebKitFormBoundary7MA4YWxkTrZu0gW\r\n" +
    "Content-Disposition: form-data; name=\"AssignedSupportLevel\"\r\n\r\n" +
    assignedSupportLevel + "\r\n" +
    
    "--WebKitFormBoundary7MA4YWxkTrZu0gW--"
    

    The action has two expectations as described in the description.

    1. You use the limit as described in details in your content type of the request.
    2. The action assumes that all data in the form is the Content-Disposition: data type of the form.
  • Enter the statement in the form of data

    Hi all

    In property from form data section there is an option "Enter the statement". Is it possible to see this instruction except in edit mode?

    Published by: 860905 on March 16, 2012 17:19

    Yes. There are two ways. When you click on the Forms folder, it will give the list the name of the form. In the right column, the instructions are displayed.

    In addition, once you have opened a form, it has a button in the toolbar. Looks like a document with a small 'i' in front of it. It is about 15 buttons to the right of the button "explore". Press and it will guide you.

    Hope this helps,
    -Jake

  • Question on the form of data - implicit sharing

    Hello

    We have a data form that the user can down to the level 0 in the rows to enter data. The question is for some customers when the user tries to enter data at the client level 0 is not save the number of entry but get substituted automatically with the parent value. If the user has entered in the parent customer was filling too the same value for the client to level 0.

    When I checked in the outline... I noticed that they are customers who had only one child, and I guess that this happens because of the property on the part of the implicit. I don't know if there could be another reason to do this. If I am wrong please correct me.

    Now, I know that if you change the property of the customer parent to share never, it might solve the problem. But the problem here is - there is a lot of these customers. And each month we receive new clients that could belong to the same case. It would be difficult to go and change the property to share ever for all customers and keep track of it manually. It might be a maintenance problem.

    So is there any other solutions? We can sort it solve? Please let me know your suggestions or ideas on what you think would be the best way to resolve this problem.

    Any ideas are appreciated.

    Thank you!
    ~ Hervé

    Hi Gwen,

    You can disable the implicit sharing in the Essbase.cfg
    When you set the parent members and children store, you create blocks more in the database, so use with discretion.

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/esb_tech_ref/impliedshare.html

    In addition, if you leave the parent on the form, you should be able to write data to the child.

    Kind regards
    Robb Salzmann

  • Round my values in the form of DATA

    Hello

    Are there opportunities that I could gather my values in forms of data?

    245.587 = 246


    Thank you

    Have you had a look at the accuracy of form settings - http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/frameset.htm?form_opt.html
    Otherwise, you might have a business rule that rounds the values using the @ROUND function - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/round.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Passing in the form of data members in the business rules page

    Hello

    I explored features of calculation Manager and how variables are handled in Hyperion Planning 11.1.2.3. I created 5 global variables that must be spent by a members of page of form data, but when I press save button that triggers the recording on / used members page / quick cache, a command prompt opens with the Member of default variables. How can I make the page members to BR? Should be pretty simple, but could not find the problem so far.

    Thank you

    Try selecting 'Member' instead of 'members' in the variable of calculation.

    Kind regards

    Altair

  • read only cells in the form of data

    Hello

    A couple of lines become read only in one or more the data form, it is read only for some users AB and its writable for users CD.

    AB users could not enter data until last month in the same lines on the same form, all of a sudden it does not AB enter data in cells.

    If security seems good, what could be other possible questions?

    Thank you

    Ravi

    Did you look at their security? Check the filters in environmental assessments or generate a report of access control for users and see if some security is limiting.

    Concerning

    Celvin

  • Comparison of column in the form of table II

    Hello

    At the APEX 4.1 I am doing something similar to this thread: in table form: compare two fields in column where I need to do a validation on two columns in tabular form. It works for both columns are columns of text box, but I can't make it work when comparing to a single column to display. For validation, I have defined it as an "Expression of PL/SQL" and my expression is: CURRENT_VALUE >: PREV_VALUE where CURRENT_VALUE is a column of text box that accepts user input and PREV_VALUE is only one display column.

    Regardless of the absorbed power, the row is updated without any errors raised; He seems to treat the single display value in the vacuum and made the comparison with an empty value. The only solution I could find was to make the comparison in a update trigger on and will raise an error if validation fails; but the result is not as nice as the built in features of validation of the APEX.

    No indication on how to make it work using the validation of the APEX is greatly appreciated.

    Thank you!

    Only column display are for display only and are not saved in the session when you send, so that you can't access with pl/sql.

    So either do the validation in javascript/jQuery or, and it is best if you ask me, make a text field and set to read-only.

  • To access the details of text notes of cell (in the form of data) in relational tables

    We have a lot of cell text notes (writings of in the data forms) that users create and use, using smartview to access planning.
    Is it possible to look at without connecting smartview/similar, which is looking at a particular relational table in the background? If so, which table would hold this information?

    How to play with HSP_CELL_NOTE and CELL_NOTE_ITEM?

    See you soon... !!

  • Dimension members does not show in the form of data

    Hello
    I have a deployed application of EPMA. But when I try to create a data form and assign some members of dimensions, all members of some dimensions (scenario) are not displayed.
    Appreciate any help.

    Hello
    Have you checked the planning-> Administration-> Dimensions and checked are available in planning. For some reason, not updated members in planning even if the deployment said that it is deployed and in sync with the application library. If the members are not available in the planning, try this.
    Open the library size, disappear the dimension (in your case) the display of the application. Drag and drop the dimension of the library shared the view of the application. Deploy the application again.

    See you soon,.
    Alp

  • Variance in the form of data...

    Hi all
    I took two dimensions Varinace and Variance % scenario as well as others. Variance = budget estimate here. In environmental assessment, I very well could insert formulas called @VAR and @VARPER for the variance and its calculations of age %. Now when I open my data form in the workspace, I am only able to see the value of the Variance, not the percent of the Variance. Then I browsed of the EAS for verification of the formulas and could see that the @VAR formula was intact, but @VARPER disappeared. But I had saved their property when they are created. can someone pls tell me what to do?

    A response would be highly appreciated.

    Thank you.

    Hello

    You will need create formulas in the planning and then push them down for essbase, if you select the Member or change the properties there a tab form.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Windows media 11 - minute CD in the form of data files burn - Player wasn't question before

    Windows media 11 - CD player now burn as data files - all the previous burns were 80 min 700 MB disc, now burn list shows only around 50 mb, 640 and used for whole album remaining.  Does not work as an audio cd - this just started 3 months ago and I have been unable to solve.  Thank you for the additional remarks: looking for updates, all-deleted Firefox Plugin (deleted) tried to reload Windows Media Player, but will not be with the current version.  Rather not delete Windows Media Player and reload as many albums is here.  10 years of value at least

    Please see:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player

    (the section called "Burn Audio CD".

Maybe you are looking for