Query Regarding Displaying Data

Hi ,
I have one table tblugatewaycdr.
table having cdr records.
invoice number      callednumber      date     accountedcost
200900006438.00     96614727373.00     1-Jun-09     6
200900006438.00     96614727373.00     1-Jun-09     - 6
200900006438.00     96614727373.00     1-Jun-09     - 1310
200900006438.00     96614727373.00     1-Jun-09     1310
200900006438.00     96614727373.00     1-Jun-09     -1310
200900006438.00     96614727373.00     1-Jun-09     38
200900006438.00     96614727373.00     1-Jun-09     38
200900006438.00     96614727373.00 1-Jun-09     -38
Now i have to take only one positive and one nagative value accountedcost.(in pair +6 and -6, 1310 and -1310)
kindy provide me appropriate solution

Is that not just a case of selecting DISTINCT values?
If you're after something more then perhaps you'd better explain in more detail.
Also, when you paste code or data put the tag {noformat}{noformat} before _and_ after it so that it maintains it's format on the forum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Query not displaying data

    Hello BW experts,
    I am having an issue where in my query is not displaying data even though there is data in the cube in production.
    But the same query is displaying data for the same selection in QA system.
    I have executed the tests in RSRT, but am not able to find anything.
    Please give your valuable inputs.
    Thanks in Advance
    BW learner

    Hi,
    Check the filters of your query, Is there any selection made where you are going to get only march data which is present in your production system.
    Check the info cube data by giving the same filter values as in the query definitation. If you didnt find any data, then your query is working fine.
    check this and let me know...
    if you find some data in the cube with the same filter selection, then give me the data flow of your query, which means, whether the query is executed on Multiprovider or cube?
    Regards,
    Patil.

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Query to display data monthwise and calculate total for first 12 months

    Hi All,
    I have a query that displays forecast data monthwise.
    This has been achieved by adding 0CALMONTH on top of key figure structure.
    Eg: -
                            APR 2011   MAY 2011    JUNE 2011   ....... NOV 2013
                            Forecast      Forecast       Forecast             Forecast
    PRODUCT 1      10                15                    20                         25 
    Now there is a requirement to include new column that displays total of first 12 months data only.
    How can I achieve this without repeating the total value for every value of 0CALMONTH?
    Eg: -
                            APR 2011   MAY 2011    JUNE 2011   .......  MAR 2011    TOTAL of     APR 2012  .......       NOV 2013
                            Forecast      Forecast       Forecast             Forecast        12 months    Forecast                   Forecast
    PRODUCT 1      10                15                    20                         25               300              10                              30
    Any inputs will be appreciated.
    Thanks & Regards
    Manisha

    Hi,
    As far as i understand your requirement is to make a new keyfigure which has to be total of 12 months and that keyfigure should not get splitted based on calmonth which you have kept above the key figure structure in columns.
    I dont think it will be possible to achieve it that way.You need to make a fixed structure which will dispaly data for say next 12 months or whatever your user requirement is and you need to make a seperate  keyfigure with month offsets and then you can make  a seperate total keyfigure(of 12 months).
    With the help of text variable type replacement path you can get the seperate month names for all your forecasted keyfigures.
    I had the same requirement but my user wanted to see the next six months data only so i made it with the help of month offsets.
    If you get any other work around to achieve your requirement then please do share the solution with us.
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Sep 6, 2011 9:34 AM

  • Query not displaying data IT0019

    Hello Experts,
    I created an ad hoc report by consulting the information I need from the IT0019 infotypes along with many others.  Running the query gives no data on this infotype. I reviewed the configuration, but no encounter problems or differences. Also check the table, but there are no data in the query.
    Regards.

    Hi Pablo,
    I think problem with Infosets. While creatiing infoset, you have not added IT0019 which is part of PNPCE logical data base.
    Check your infoset and add IT0019.
    Regards,
    Purnima

  • Querying and displaying data from a database

    Hi,
    The environment I am working in has the EBIZR12 suite installed on the apps server APP1, the EBIZR12 database deployed to server DB1 listening on port 1522 and a MIDTIER database deployed to server DB1 listening on port 1521. I have a custom page that needs to query the data off of MIDTIER and populate a display table. The page I have created emulates that of the Search tutorial. I have an application module that contains a BC4J object and views and these are connecting to the MIDTIER to retrieve data. It has a table that should display queries returned from the MIDTIER database. My question is, are there any limitations with OA framework development and deployment that would NOT make this feasible? if not is there anything else I would need to do either as a pre-requisite or as part of my page construction to make this work, because currently my page table is not being populated and I am not getting any exceptions on the page to indicate the database is either unreachable or the connection configurations are incorrect. Any help is very much appreciated.
    regards,

    Yes, in case of query region, an executequery was getting called on clicking go button. But now as you just have a table mapped to a VO, you also need to call the executequery explicitly in the page controller's processRequest method.
    Your point "I would like to point out that the instructions in those tutorials are not compatible with the newest version of JDEV" is completely wrong. First of all each Jdev has its own set of tutorials reflecting all the changes in that particular version. Secondly, as you are trying to use a particular scenario steps to create something different, you can't expect it to handle all the side off scenarios you can make. Drag and drop UI won't get you more than a few basic screens. Read more and you will understand the working of framework.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query regarding display values

    Hi,
    I Have a Table with column name as
    agent_name
    guest
    billing
    i have to display report as        
                                        2010                      2009
    Agent_name           guest        billing        guest     billing
    abc                           209       5000              300     6000      //209 is the count (guest),sum(billing) group by agent name and year
    guest and billing is the single column in table and i have to  display only  top ten rows in desc order with maximum  of billing.
    i am not able to write code for this query. please  help me to show these value.Edited by: 805629 on Feb 21, 2011 5:36 AM
    Edited by: 805629 on Feb 21, 2011 5:38 AM

    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Query regarding displaying of a blank page on the output of an invoice

    hi All,
    I am facing a problem in both my development and staging servers. Whenever a print preview of an invoice is seen, there are 3 pages getting displayed (depending on the data) with one BLANK PAGE between 2 pages having data ie., First page has the data, second page is blank and third page has some data again.
    Now its very strange and i could not understand why this problem  is arising.
    I had debugged the invoice SAPScript, but culd not find the issue,. Can anyone please help me out in this regard.
    Regards
    Priya

    hi!
    hav u assigned the next page for ur first page as wanted.....
    or u r calling two pages explicitly by new-page then check the page assigned and check for spaces in ur program.....

  • Query not displaying data if i launch in web.

    HI,
    i have created one query.
    If i open the same in Bex Analyser i am getting data.(dispalying data).
    If i launch the same query through web its not dispalying data.error message as no data available.
    Please tell me wat may be the reason.
    thanks & regards,
    KPS Moorthy

    if you see the result in Bex, then you should see the same result in web also unless you are giving any variables value values executing on web.
    I hope you are executing query  on web using query designer.
    Regards
    Pankaj

  • QUERY REGARDING INFINITY DATA EXTENSION

    Im having Bt Infinity installed on thursday and I want to have Hub in the room upstairs where the pc is located.My master socket is downstairs in the hall. Im very confused after reading some entries on this forum. Is their a charge for installing the data extension kit or is it part of the free install ?? http://bt.custhelp.com/app/answers/detail/a_id/965​2   The information on this link seems to suggest their is a fee for any internal wiring work undertaken (data or telephone extensions). Is their any of the mods who can give me a definitive yes or no regarding a charge for this. Thanks

    I had Infinity installed last week with a similar setup to what you describe. The OR guy made the existing extension socket upstairs the master and the downstairs socket which was the master an extension. He used a spare pair of cores in the existing extension cable to do this so no additional wiring as such was required. Everything works just as it should.

  • Need help in query to display dates as start, end dates

    Hi,
    I am trying the following output from the below table structure, data
    StartDAte Endate Reason          duration
    12-02-09 12:00:00 12-02-09 13:10:20 planned activity 1:10:20
    01-04-09 08:30:34 01-04-09 15:00:20 planned activity 6:30:34
    12-04-09 17:10:45 12-04-09 17:11:04 unplanned activity 0.10
    23-05-09 22:00:11 23:05-09 22:15:09 planned activity 0.15
    Mdate Reason omode host
    12-02-09 12:00:00 planned activity st 366
    12-02-09 13:10:20 planned activity ed 366
    01-04-09 08:30:34 planned activity st 366
    01-04-09 15:00:20 planned activity ed 366
    12-04-09 17:10:45 unplanned activity st 366
    12-04-09 17:11:04 unplanned activity ed 366
    23-05-09 22:00:11 planned activity st 366
    23:05-09 22:15:09 planned activity ed 366
    i tried with individual query but not able to get the output in combined way of start, end dates together with calculation of time difference, i tried using case options but not successful in resolve it.
    select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate, reason
    from date_md where omode like 'st'
    order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate;
    select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate, reason
    from date_md where omode like 'ed'
    order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate;
    any suggestions on type of query should be used is welcomed.

    Or maybe
    SQL>  WITH t AS (SELECT TO_DATE ('12-02-09 12:00:00',
                               'DD-MM-YY HH24:MI:SS')
                       event_date,
                      'planned activity' activity,
                      'st' start_end,
                      366 HOST
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-02-09 13:10:20',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('01-04-09 08:30:34',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('01-04-09 15:00:20',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-04-09 17:10:45',
                               'DD-MM-YY HH24:MI:SS'),
                      'unplanned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('12-04-09 17:11:04',
                               'DD-MM-YY HH24:MI:SS'),
                      'unplanned activity',
                      'ed',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('23-05-09 22:00:11',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'st',
                      366
               FROM DUAL
               UNION ALL
               SELECT TO_DATE ('23-05-09 22:15:09',
                               'DD-MM-YY HH24:MI:SS'),
                      'planned activity',
                      'ed',
                      366
               FROM DUAL)
    SELECT MIN (event_date) startdate,
           MAX (event_date) enddate,
           MAX (activity) reason,
           NUMTODSINTERVAL (MAX (event_date) - MIN (event_date),
                            'day')
            duration
    FROM t
    GROUP BY TRUNC (event_date)
    STARTDATE             ENDDATE               REASON             DURATION                                         
    23.05.2009 22:00:11   23.05.2009 22:15:09   planned activity   +00 00:14:57.999999                              
    12.02.2009 12:00:00   12.02.2009 13:10:20   planned activity   +00 01:10:19.999999                              
    01.04.2009 08:30:34   01.04.2009 15:00:20   planned activity   +00 06:29:45.999999                              
    12.04.2009 17:10:45   12.04.2009 17:11:04   unplanned activity +00 00:00:18.999999                              
    4 rows selected.

  • Query Not displaying data for a particluar Cost centre code(urgent) !!!!!!

    Hi Folks,
    I have an infoset which is on top of two ODSs.
    Data for a particular cost center code present in both the ODSs.
    There is no data prsent in RSISET for that CC.
    Also the query is not showing any data for that CC.
    Data is not showin in RSRT for that CC ,but the SQL stament is getting generated  for that CC.
    Already Checked the infoset key fileds settings and all....
    Y its happening like this any ideas???
    Need your help buddies urgent issue.

    Please check weather the links are established between the info objects properly in the infoset.

  • Query regarding BO Data services installation

    I am in process of installing BO data services on Unix(AIX) system. I need to install DATA SERVICES XI 3.2 SP3. For this I have downloaded the installables and patches from marketplace. We have following queries:
    1. On installation of the data services can we directly apply SP3 patch1 or we need to install SP1, SP2 and SP3 first.
    2. How to check the version of SP installed. I have applied SP3 patch1 but I am not able to check the same.
    3. During installation, I have skipped the step of creating the repository as I need to do it later using repoman, can this be a reason of that I am not able to upgrade SP for this?
    Any pointers on this would be helpful.

    check the JobServer log in the %LINK_DIR%\log\<JobServerName>\server_eventlog_<date>.log file
    look for the following entry
    Sending notification to <inet:ip-address:port number> here ip-address is the ip-address of the Designer machine, try to ping from the job server machine on that ip or try to do a telnet
    telnet <ip-address>  <port number>
    what is the status of JobServer on Designer?
    where is you DI webServer installed? on the same machine as Designer ? or on the JobServer machine

  • Query regarding previous data....

    Hi BCS experts,
    My client went live on sem bcs 2007/AUG by executing monitor. But due to some reasons they stopped using sem bcs for the following months till date. Now I am working on project and I would like to make the system to run in production in 2008/Nov with new requirements.
    By changing the consolidation group with current month of production and newly uploading Trail Balances into production I want to run the monitor as I am going live on 2008/Nov.
    If I run cons monitor I have a doubt that system prompts for last year data and carry forwards of old data.
    But I want to delete the old data and clean the system for not prompting it while running the tasks at Nov/2008 and making the system as it I am going live in nov/2008.
    Any one can assist.

    Hi and welcome to SDN!
    There some ways to clean up your database:
    1. Use inversion in the Cons monitor - you have to do it in each period - low risk - much work - big database after cleanup because of keeping all original and inversing documents.
    2. Use the Cons workbench -- there is an option to delete reported (uploaded) data, additional financial data and documents - low risk- much work - big database after cleanup because of keeping all original and inversing documents.
    3. Delete data from the totals cube and the Document ODS/DSO (in BW - RSA1 t-code) - risky (if you are not friend to BW it's better to invite the BW's friend to do it) - the minimal work - absolutely empty database -- Probably you'll have to delete also data from all cubes and ODS/DSO in your db.

  • Display data of query in Analysis Process Designer mismatch query result

    Hi experts,
    I am having an issue with APD.when ii am display data of the query in apd i am having wrong values for key figures.
    any solutions?
    Thanks

    Hi,
    after doing a check by restricting data in the query, I see that the condition I have set in the query, to only give me the data where keyfigure X <= 2, the DSO is updated with all the values. So it seems that conditions in queries are ignored by the APD. Does anybody know anything more about this? Then I can understand why the job was taking so much time...
    Regards,
    Øystein

Maybe you are looking for

  • How do I use the same execute advanced actions?

    I am using captivate 5, windows 7 I created a slide with several click boxes and images.  I name them, for example, Click Box A  Image A Click Box B  Image B Click Box C  Imsge C And perhaps Images D, E, F I created Advanced actions, for example, Sho

  • Home Sharing with iTunes 9 and Vista

    I just downloaded and installed iTunes 9 on both of my Vista boxes. I am trying to use the Home Sharing feature. I clicked on Advanced> Turn On Home Sharing. I enter my Apple account info and click Create Home Share. A box pops up that says Home Shar

  • Can I set Firefox as my windows 7 default mail client?

    I've already set Firefox's mailto/send etc email program to Gmail, but I want to also set the Windows 7 default mail client to use FireFox (which knows to use gmail). For example, when in Windows Photo Viewer I click "email" and then "attach" I get a

  • Context Mapping in web dynpro

    Hi, Steps which I underwent for context mapping is: 1. Opened view designer for start view . 2. Choose the context tab. 3. Opened the context menu for the root node context n choosed the option New->Value attribute. 4. entered the name for the attrib

  • How do I change Firefox so that when I update it doesn't block me from sending emails from my webmail?

    After updating Firefox, my webmail account doesn't let me send emails. This happens if I use Outlook Express or if I go to the webmail site in Firefox. I can send emails if I go to the webmail site in Explorer. The last time this happened someone fro