Need Query to display

Hi Folks,
I need query for displaying following:
Adjusted A/R Balance:-
Sum of all open Receivables transactions for the Bill To address for a :Particular_Customer. Total of all open items (Invoice, Credit Memos, CLAIMS, ON ACCTS, UNAPPLIED, DEBIT MEMOS) PLUS any orders that have been approved but not yet invoiced.
================================================================================
Credit Tolerance:-
Percentage of Credit Limit that is the allowed tolerance for exceeding the credit limit. Determined by the following calculation: (Exposure Credit Limit ((Credit Tolerance + 100)* Credit Limit / 100) – Credit Limit)/Credit Limit.
would be very greatful if someone can help on same.
Thanks in advance.
Regards,
gvk.

another example would be:
SQL> with emp1 as
  2  (select 10 emp_id, 'AAAA' emp_name from dual
  3   union all
  4   select 22 emp_id, 'BBBB' emp_name from dual
  5   union all
  6   select 15 emp_id, 'BBBB' emp_name from dual
  7   union all
  8   select 17 emp_id, 'cccc' emp_name from dual
  9   union all
10   select  4 emp_id, 'DDDD' emp_name from dual
11   union all
12   select  5 emp_id, 'EEEE' emp_name from dual
13   union all
14   select 53 emp_id, 'EEEE' emp_name from dual)
15  select emp_id id, emp_name name from emp1;
        ID NAME
        10 AAAA
        22 BBBB
        15 BBBB
        17 cccc
         4 DDDD
         5 EEEE
        53 EEEE
7 rows selected.
SQL> with emp1 as
  2  (select 10 emp_id, 'AAAA' emp_name from dual
  3   union all
  4   select 22 emp_id, 'BBBB' emp_name from dual
  5   union all
  6   select 15 emp_id, 'BBBB' emp_name from dual
  7   union all
  8   select 17 emp_id, 'cccc' emp_name from dual
  9   union all
10   select  4 emp_id, 'DDDD' emp_name from dual
11   union all
12   select  5 emp_id, 'EEEE' emp_name from dual
13   union all
14   select 53 emp_id, 'EEEE' emp_name from dual)
15  select row_number() over (order by emp_name, emp_id) rn,
16         emp_id   id,
17         emp_name name
18    from emp1;
        RN         ID NAME
         1         10 AAAA
         2         15 BBBB
         3         22 BBBB
         4          4 DDDD
         5          5 EEEE
         6         53 EEEE
         7         17 cccc
7 rows selected.
SQL>

Similar Messages

  • How do you have more than one parameterized Query to display "All"?

    hi,
    I am using:
    Jdeveloper 9.0.5.2
    Oracle Database 9.2.0.1
    Toplink
    Struts
    I have been able to create a parameterized query to display an html read only table.
    I populated a dropdown list with values from the database
    and the values I select will be the parameters to my read only table.
    The drop down list is on the same page as the read only table.
    I have all this working but I also need to hard code an option in the Drop down to "All"
    to represent all values of this parameter.
    I was able to trick the jsp page using two read only tables
    and displaying the one with the parameterized query when a parameter other than "All" was chosen
    and then display the other only when "All" was chosen.
    This does not seem the best way to do it.
    What if I had more than one parameter and I wanted to show "All"
    the values of one and a certain values for another.
    I would then need at least 4 read only tables.
    How do I accomplish this in an easier way?
    Thanks in advance.

    I am not exactly sure what you are asking... Are you having trouble with TopLink, or another part of your application?
    Peter Krogh

  • Formatted search query for displaying invoice items details

    hi all,
    i need to display all the items in AP invoice.kindly suggest me a query for that.
    in AP invoice
    Ex. row items
    code--descqtyprice--
    total
    I0001--XXXXXXX5--
    100 -
    500
    query should display this row as
    code--desc--
    price
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    =================================
    the query should display as the qty is 5 so it will display the same item 5 times
    kindly suggest me some query for formatted search
    its very urgent
    regards
    sandip

    Hi Sandip,
    DoQuery("Select b.ItemCode from OINV a,INV1 b Where a.DocEntry=b.DocEntry")
    Hope its help for you
    Give me reward points,
    Regards,
    G.Suresh.

  • How to write sql query that display comma suppurated result using Group by

    Hi,
    I am having data like bellow ,
    Above result got from joining two tables VMTAGroupClient,VMTAipNames .
    Query i have written to display above result is,
    select vgc.VMTAGroupId,vn.VMTAName from VMTAGroupClient vgc inner join VMTAipNames vn
    on vgc.VMTAID=vn.VMTANameID group by vgc.VMTAGroupId,vn.VMTAName 
    using the VMTAGroupId column how to write query to display result result like,
    VMTAGroupID    VMTAs
       1                       VMTA1,VMTA3
       2                       VMTA2,VMTA4,VMTA5
    Regards,
    Anwar Shaik

    Satheesh,
    Here in my case data need to read from two tables VMTAGroupClient, VMTAipNames.
    VMTAGroupId is in one table and VMTAName column in some other table.Iin both the tables VMTAID is common.
    Please check the above result displayed data from two tables.
    can we write same query using join?
    Anwar Shaik

  • 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

  • Require print pushbutton on a query result displayed in a web browser

    Hii,
    I have a created a query in SAP Bw 3.5. and it is available under queries column in my sap easy access screen.when i double click or execute that query , the result of the query is displayed on web browser.There i am getting push buttons for  follwing like.save view, bookmark, variable screen , exceptions&conditions , export to csv and export to excel.
    Similarly i need a push button for print so that when i click on print , it has to print the report.
    How to create push button . how to place that pushbutton in the default template that is used for display

    Diwakar -
    This is probably not the most appropriate forum for you question.  This forum is geared towards EP migration issues and questions.
    Thanks,
    Kyle

  • I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one view a movie downloaded to the MacAir on a TV screen?

    I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one go about viewing a movie downloaded to the MacAir on a TV screen?

    Welcome to Apple Support Communities
    That's exactly what you need. A Mini DisplayPort to HDMI adapter and a HDMI cable. See > http://support.apple.com/kb/HT4241?viewlocale=en_US
    This is the only way to view a video on the TV. After connecting your MacBook Air to the TV, image on your TV should show immediately. Then, press Command and F1 keys to mirror your MacBook Air display, and open the video

  • Need query to find out whether exactly 2 columns are used in any index ?

    Suppose i have two columns ID and Status (or any number of columns ) belongs to table customer...
    Now I want to create below index
    Ex. create index test1 on customer (ID , Status )
    But before creating this index i want to check that whether there is already index on these 2 columns ? May be by other name ?
    Need query for this.
    Plz help.

    Hi Shubhangi,
    Your requirement is very difficult to fulfill , i have made an attempt to replicate your reqrmnt & write a query wherein you need to compromise on few things , let us see if it works for you
    Supply table_name/owner & Number of column on which you want to find indexes
    e.g.
    select distinct INDEX_NAME,column_name
    from dba_ind_columns
    where index_name in (select distinct index_name
    from dba_ind_columns
    where table_name='&table_name'
    and table_owner='&owner'
    having count(column_name)=&column_count group by index_name);
    Enter value for table_name: ADDRESS
    Enter value for owner: ASAP
    Enter value for column_count: 2
    INDEX_NAME COLUMN_NAME
    FKIDX_AD__SF_ST_FO SF_STRUC_FORMAT_NM
    FKIDX_AD__SF_ST_FO SF_TYPE_NM
    SQL> /
    Enter value for table_name: ADDRESS
    Enter value for owner: ASAP
    Enter value for column_count: 3
    INDEX_NAME COLUMN_NAME
    FKIDX_AD__SF_ST_FO_1 POSTAL_CD
    FKIDX_AD__SF_ST_FO_1 SF_STRUC_FORMAT_NM
    FKIDX_AD__SF_ST_FO_1 SF_TYPE_NM
    Thanks,
    Ajay More
    http://moreajays.blogspot.com

  • Need guidance in displaying graphics shapes on image

    I would like some help drawing a circle over an image which is displayed in JScrollpane through JLabel, The goal is, whe we click over the image, the image apperas with a small circle in the place we have clicked. I have used JLabel for displaying image in JScrollpane by using imageLabel.setIcon(new ImageIcon("default.jpg"));
    I need to draw circle/rectangle when i click on image by this i need to select different points in the image by drawing circles/rectangles over the image.
    If you understand my problem than please guide me for the same.
    Thank you

    Don't post the same question multiple times. It's rude, as it leads to people wasting their time duplicating each others' answers.
    http://forums.oracle.com/forums/message.jspa?messageID=9385315#9385315
    http://forums.oracle.com/forums/message.jspa?messageID=9385314#9385314
    Need guidance in displaying graphics shapes on image

  • Need Query for this

    Report Builder Version:10g
    Hi Guys Good Morning to one and all
    I have a table Named Onlsuvdet which captures the answers from
    an online survey front end which has multiple choice questions.
    the table structure is as follows
    create table onlsuvdet(shloid number,questno char(5),respo1 char(5),respo2 char(5));
    and the sample data is as follows
    SHLOID QUEST RESPO RESPO
    9315 1 2
    9315 2 3
    9315 3 4
    9315 3 5
    9315 4 1
    9315 5 2
    9315 5 1
    Now i want the result as follows
    shlogid quest1 quest2 q3 q4 q5
    9315     2 3 4,5 1 2,1
    So my requirement is a query which displays this data as above.
    Please helpppp
    Any help will be appreciated :)
    Thanks & Regards

    Hi,
    user123 wrote:
    Report Builder Version:10g
    Hi Guys Good Morning to one and all
    I have a table Named Onlsuvdet which captures the answers from
    an online survey front end which has multiple choice questions.
    the table structure is as follows
    create table onlsuvdet(shloid number,questno char(5),respo1 char(5),respo2 char(5));Thanks for posting the CREATE TABLE statement. That helps.
    Why are you using the CHAR datatype, rather than VARCHAR2? CHAR is nothing but trouble.
    and the sample data is as follows
    SHLOID QUEST RESPO RESPO
    9315 1 2
    9315 2 3
    9315 3 4
    9315 3 5
    9315 4 1
    9315 5 2
    9315 5 1Always post your data in a form people can use to re-create the problem and test their solutions. for example:
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '1    ', '2    ', NULL);
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '2    ', '3    ', NULL);
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '3    ', '4    ', NULL);
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '3    ', NULL, '5    ');
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '4    ', '1    ', NULL);
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '5    ', '2    ', NULL);
    INSERT INTO onlsuvdet (shloid, questno, respo1, respo2) VALUES (9315, '5    ', NULL, '1    ');I'm making a lot of guesses about the data. for example, I'm guessing there will never be more than 2 rows with the same shloid and questno.
    Why do you have 2 columns, respo1 and respo2? Is exactlyly one of them always NULL? If respo1 is NULL, will there always be another row with the same shloid and questno, but with a NULL respo2?
    Now i want the result as follows
    shlogid quest1 quest2 q3 q4 q5
    9315     2 3 4,5 1 2,1Be consistent with the column names; either call them all questn (like I did below) or call them all qn.
    So my requirement is a query which displays this data as above.Perhaps something like this:
    WITH     joined_data     AS
         SELECT     r1.shloid
         ,     r1.questno
         ,     RTRIM ( r1.respo1 || ',' || r2.respo2
                    )     AS respo
         FROM                onlsuvdet     r1
         LEFT OUTER JOIN     onlsuvdet     r2  ON     r1.shloid     = r2.shloid
                                         AND     r1.questno     = r2.questno
                                         AND     r1.respo1     IS NOT NULL
                                 AND     r2.respo2     IS NOT NULL
    SELECT       shloid
    ,       MAX (CASE WHEN questno = '1    ' THEN respo END)     AS quest1
    ,       MAX (CASE WHEN questno = '2    ' THEN respo END)     AS quest2
    ,       MAX (CASE WHEN questno = '3    ' THEN respo END)     AS quest3
    ,       MAX (CASE WHEN questno = '4    ' THEN respo END)     AS quest4
    ,       MAX (CASE WHEN questno = '5    ' THEN respo END)     AS quest5
    FROM       joined_data
    GROUP BY  shloid
    I hope this answers your question.
    If not, point out a few places where the query above gets the wrong results. Post the correct results (formatted, between \ tags, as explained in the FAQ
    http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
    ) and explain how you get the correct results from the given data.  Correct or add to the sample data that I psoted, if necessary.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need help in displaying a region in  a page

    Hi,
    I'm looking for the following scenario.
    Scenario:_
    2 Regions "region_ABC" , "region_XYZ" are dragged and dropped on EM page "PAGE_1". When the "PAGE_1" is displayed first time only the region "region_ABC" will be displayed. When a specific radio button of the "region_ABC" is selected another region "region_XYZ" needs to be displayed in that page "PAGE_1".
    I tried to use the Partial Triggers which didn't work. Please provide valuable suggestion/pointers.
    Thanks in advance
    -Sukumar

    Hi Sukumar:
    This is the typical case for you to use "Control Flow Case".
    You need to create a Bounded task flow say: task-flow1. In this task flow, region_ABC and region_XYZ will be 2 Views in it. Then drag and drop a "Control Flow Case" onto this task-flow1.xml between view: region_ABC and view: region_XYZ. The outcome of the "Control Flow Case" can be anything you like in literal: "ABC2XYZ". Next, go to your region_ABC.jsff file, click on the radio button, and go to its property editor. In the "Action" attribute, put "ABC2XYZ" there.
    You drag and drop the task-flow1 onto your EM page "PAGE_1".
    That's it!
    Good luck,
    Alex

  • Need my 30" display  to be 25ft away from our G5

    Need my 30" display to be 25ft away from our G5 I'm not finding many solutions on how I can do this and still retain a high quality image. Do i need some sort of repeater? Not getting any answers from stores around here. Help!!!!

    http://www.ramelectronics.net/html/DVIdlcables.html

  • Warning pop up before query results display

    Hi,
    Iam getting one pop up Box before query results display  in that box I am getting around 10 messages like below.
                 *Warning  period 00000000- No vaild translation date to specify (ZMRATECMN)"
       after I click on the CLOSE tab on that box it is displaying query results.
      It seems this is warning related to currency traslation.
      How to avoid this pop up box display with the messages.Please help me.

    Hi,
    You can supress the messages in RSRT. Select your query and click the button warnings button in toolbar. There you can see all the messages. select the check boxes of the corresponding messages you want to supress and click save.
    Thanks
    Venkat

  • Needs to be displayed in US format, instead of EU

    The tolerance limits characteristic, 0TOLERANCE, needs to be displayed in US format, instead of EU.  ie.  5.000,00  needs to be changed to 5,000.00

    These are user display settings and can vary from user to user , thats why its maintained in the user master. I guess this is the only place where you need to maintain it , probably someone else can share if there is something more specific.

  • SCCM report query that displays count of cpus per host and if host is physical or virtual

    Hello,
    I have this query that displays the count of CPUs per host.  How can I add a column to show if the host a physical or virtual?
    SELECT
    DISTINCT(CPU.SystemName0) AS [System Name],
    CPU.Manufacturer0 AS Manufacturer,
    CPU.Name0 AS Name,
    COUNT(CPU.ResourceID) AS [Number of CPUs],
    CPU.NumberOfCores0 AS [Number of Cores per CPU],
    CPU.NumberOfLogicalProcessors0 AS [Logical CPU Count]
    FROM [dbo].[v_GS_PROCESSOR] CPU
    GROUP BY
    CPU.SystemName0,
    CPU.Manufacturer0,
    CPU.Name0,
    CPU.NumberOfCores0,
    CPU.NumberOfLogicalProcessors0

    I see that you have posted this exact question in another forum for CM12, however this is an CM07 forum.  
    Are you CM07 or CM12?
    If you are CM12, use my answer here.
    http://www.systemcentercentral.com/forums-archive/topic/sccm-report-query-for-cpu-cores/
    If you are CM07, this is NOT a simple how exactly do you detect that a computer is a VM? You can guess by looking at the manufacturer name but it is only a guess.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

Maybe you are looking for

  • Education Cess and Sec Edu Cess not appearing in Excise Invoice

    Hi all i have a small issue and I am not very familiar with the CIN configuration. When I capture the excise invoice, only Basic Excise Duty is appearing in the invoice but Education Cess and Secondary Education Cess which is there in Sales Invoice i

  • Java develoment in unix or windows

    Sometimes people ask u 'have u done java development in unix or wondows'. Whats the difference between developing java apps in unix or windows

  • Issue with creating Web Service Client using Oracle JDeveloper

    Hi All, I am trying to create a Web Service Client using Oracle JDeveloper. I set the Project compiler property to JRE 1.4 When I run the web service client, it throws me bunch of errors saying: 'Error(32,2): annotations are not supported in -source

  • Photo Shop CS6 Install Errors. HELP  (ANYONE ELSE)

    I am installing CS6 Design Standard on a MacbookPro 8 mgs ram, system meets all requirements. Yesterday Adobe Tech Support and I were on phone 3 1/2 hours trying to remedy the problem. NO GOOD. Still the same issue. I get error messages and also when

  • Web report - Right click for context menu

    I believe SAP switched the way (left mouse button to right one) to get web report context menu as of BW 3.5. I am looking for the official documentation for it. I could not find it in online help http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138