Query range must return one record based on the amount passed.

Hi,
Need to return the correct line_number based on the amout that falls within that range.
Example;- if current amount value is 100 then line_number should return 1.
if current amount value is 420 then line_number should return 4.
Line_Num Amount
*1 149.99*
2 300
3 400
*4 500*
5 9999999.99
I need this in a query to resolve this, not PL/SQL.
Thanks in advance.

select min(line_num) from yourtable where amount >= &input_amount

Similar Messages

  • Returning records based on the max timestamp

    I am writing a query to return records for each dat with max timestamp. so the query must return 1 record for each day with the latest timestamp. I am doing a partition over the timestamp column and wondering which analytic func gives the fastest result. This is in a data warehouse environment where there may be millions of recs.
    thanks

    My sample table has 3 columns - deptno, deptdesc, and eff_ts. There may be multiple rows for each day but I want to pick only the first (or last) record for each day.
    This is one query I am thinking about using analytic functions.
    SELECT deptno, deptdesc, eff_ts from test_dates where eff_ts in (
    select FIRST_VALUE(eff_ts)
    OVER (PARTITION BY trunc(eff_ts) ORDER BY eff_ts) eff_ts FROM test_dates)
    I can also use max (or min) timestamp and do a group by.
    SELECT deptno, deptdesc, eff_ts from test_dates where eff_ts in (
    select min(eff_ts) FROM test_dates group by trunc(eff_ts))
    Which is better (or is there any other better way) to use in a data warehousing env?

  • Need help writing a MySQL query that will return only records with matching counter-parts

    Since I don't know how to explain this easily, I'm using the
    table below as an example.
    I want to create a MySQL query that will return only records
    that have matching counter-parts where 'col1' = 'ABC'.
    Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC' record. This record should not be
    returned because there is no matching counter-part. With this
    table, the 'ABC / GHI' record should be the only one returned in
    the query.
    How can I create a query that will do this?
    id | col1 | col2
    1 | ABC | DEF
    2 | DEF | ABC
    3 | ABC | GHI
    4 | DEF | GHI
    5 | GHI | DEF
    *Please let me know if you have no idea what I'm trying to
    explain.

    AngryCloud wrote:
    > Since I don't know how to explain this easily, I'm using
    the table below as an
    > example.
    >
    > I want to create a MySQL query that will return only
    records that have
    > matching counter-parts where 'col1' = 'ABC'.
    >
    > Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC'
    > record. This record should not be returned because there
    is no matching
    > counter-part. With this table, the 'ABC / GHI' record
    should be the only one
    > returned in the query.
    >
    > How can I create a query that will do this?
    >
    >
    > id | col1 | col2
    > --------------------
    > 1 | ABC | DEF
    > 2 | DEF | ABC
    > 3 | ABC | GHI
    > 4 | DEF | GHI
    > 5 | GHI | DEF
    >
    >
    > *Please let me know if you have no idea what I'm trying
    to explain.
    >
    Please be more clear. You say that 'ABC / GHI' should not be
    returned,
    and then you say that 'ABC / GHI' should be the only one
    returned. Can't
    have both...

  • SQL Query to retrieve the All records based on the Max Dates.

    Hello all,
    I am trying to retrieve the newest record based on the date field (  nextDate  ).
    Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
    Machine table
    MC_id             EquipID          
    1                      0227
    MC_id             EquipID
    2                     0228
    MC_Maintenance table
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010     
    2                      2                      07/01/2010
    3                      1                      06/11/2010
    4                      1                      07/11/2010
    What I  am trying to accomplish is,
    list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
    These are the records that I would like to Display.
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010
    4                      1                      07/11/2010                 
    Below is the SQL Query
    SELECT
           MC.MC_ID as ID,
            MC.complete_Date as completed,
            MC.next_maint as nextDate,
            MC.maint_notes as Notes,
            MC.facility as Facility,
            M.EquipId,
            M.name as name,
            M.SerialNumber as SN,
            M.dept as dept,
            M.Freq as freq
            From  MC_Maintenance MC, Machine M
            where  MC.MC_ID =  M.MC_ID
    '           USING MAX(nextDate )
    Any ideas would help.
    TJ

    I would have thought that was a simple group by problem?
    SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
    FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
    GROUP BY M.EquipID, MC.MC_ID

  • Is it possible to size a flash chart based on the amount of data returned?

    My chart is based on a date range. If a user enters say a range of one year, I need the line chart to be rather large so show all the data points. Though if they select just a week, then the chart can be much smaller. I only see the hard coded values to set the size of the chart (Chart Width and Chart Height). Can those be changed on the fly based on the amount of data returned?
    Using Application Express 3.1.2.00.02 and AnyChart 3.3
    Thanks.
    Chris

    Hello Hillary,
    I tried your suggestion, but still not working for me. I added hidden text field that wold hold the vaule of the width for the chart. Then I reference that field in the chart source. Is there some other property I need to change as well? Any more suggestions? Thanks.
    Here is my source.
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
         codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
         width="&P86_NUM_ROWS."
         height="#HEIGHT#"
         id="#CHART_NAME#"
         align="">
    <param name="movie" value="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#">
    <param name="quality" value="high">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowNetworking" value="all">
    <param name="scale" value="noscale">
    <param name="wmode" value="transparent">
    <param name="FlashVars" value="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
    <embed src="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#"
    quality="high"
    width="&P86_NUM_ROWS."
    height="#HEIGHT#"
    name="#CHART_NAME#"
    scale="noscale"
    align=""
    allowScriptAccess="sameDomain"
    allowNetworking="all"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    wmode="transparent"
    FlashVars="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
    </embed>
    </object>
    #CHART_REFRESH#

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • Retrive Records based on the content in a Clob Feild

    Retrive Records based on the content in a Clob Feild
    I have a Table NoteFile which contains a Clob Feild NoteFileContent
    and is refrenced by PK DocID
    i need to Match DocID with other Tables Document and folderdocument
    My Query is as Below
    SELECT Doc.Pap_Doc_ID, Doc.Pap_Doc_Name , NF.NoteFileContent
    From NoteFile NF , Document Doc, folderdocument FD
    Where Doc.Pap_Doc_ID = FD.FoldDoc_ID and FD.FoldDoc_ParentID <> 3 and
    NF.DocID = DOC.Pap_Doc_ID And NF.NoteFileContent Like '%a%'
    The above query throws
    ORA-00600: internal error code, arguments: [504], [0x7ADEBE00], [2], [1],
    [cache buffers chains], [723], [0], [0x7ADEBE00]

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • Select records based on the closest given time

    Dear SQL gurus,
    I have a table T1:
    Name Null? Type
    ID NOT NULL NUMBER(5)
    MOMENT NOT NULL DATE [DD.MM.YYYY HH24:MI]
    MEASUREMENT NOT NULL NUMBER(8,3)
    Example (ID, MOMENT, MEASUREMENT)
    -- START OF EXAMPLE --
    9380 18.11.2000 03:45 17.6
    9380 18.11.2000 04:30 17.3
    9380 18.11.2000 05:45 16.8
    9380 18.11.2000 06:15 16.8
    9380 18.11.2000 07:00 16.2
    9380 18.11.2000 07:30 16.2
    9380 18.11.2000 08:15 16
    9380 18.11.2000 08:45 15.7
    9380 18.11.2000 09:30 15.4
    9380 18.11.2000 10:00 15.4
    9380 18.11.2000 11:15 15.4
    9380 18.11.2000 11:45 15.4
    9380 18.11.2000 12:30 15.4
    9380 18.11.2000 13:00 15.4
    9380 18.11.2000 13:45 15.4
    --- END OF EXAMPLE --
    How to select records based on the:
    - time period specified by the day only [DD.MM.YYYY] - CONDITION 1
    - with values for 6AM only, and if not available, with values closest to 6AM - CONDITION 2
    (if the time gap in MOMENT field is too big, lets say > 5h then choose the average between the value before 6AM (ex. 4:15AM) and the value after the 6AM (ex. 9:45AM))
    CONDITION 1 (something like): moment between '01.01.2005' and '31.12.2004' - this is OK
    CONDITION 2: I do not know how to formulate, especially if 6AM value is not availabe, and I have to find the closest available value, or get the avergae from the two adjacent values.
    Maybe cursor magic??? Thanks a lot for your help.
    Rado

    About condition two, would the following select be of use to you? Picking the first record could be achived by rownum, analytic function, etc.
    WITH t1 AS (SELECT 9380 id, TO_DATE('18.11.2000 03:45', 'dd.mm.yyyy hh24:mi') moment,  17.6 measurement
                  FROM dual
                 UNION 
                SELECT 9380 id, TO_DATE('18.11.2000 04:30', 'dd.mm.yyyy hh24:mi') moment,  17.3 measurement
                  FROM dual
                 UNION
                SELECT 9380 id, TO_DATE('18.11.2000 05:45', 'dd.mm.yyyy hh24:mi') moment,  16.8 measurement
                  FROM dual
                 UNION
                SELECT 9380 id, TO_DATE('18.11.2000 06:15', 'dd.mm.yyyy hh24:mi') moment,  16.8 measurement
                  FROM dual
    SELECT id, moment, measurement, diff
      FROM (SELECT id, moment, measurement,
                   moment - TO_DATE(TO_CHAR(moment, 'dd.mm.yyyy ') || '06:00', 'dd.mm.yyyy hh24:mi') diff
              FROM t1
    ORDER BY abs(diff) asc, SIGN(diff) desc;
      C.

  • Web GUI new feature - creating a new record based on the current record

    Vincent,
    We need new feature in Web GUI:
    creating a new record based on the current record with data
    from Moscow with money

    It is already enabled, in the next release.
    If you joint TAB program, the march preview build contains it. User can select 1 or multiple users and make a copy.

  • Returning latest records based on specific conditions

    Hi Everyone, Thanks for everyone response for my queries. All responses are highly appreciated. I need one help in developing Sql query. I am
    using Oracle 11.2.
    I have table Test as below having columns as, ID;Name;Position;Level;Date_Added;Flag_Name;
    Suppose I have below data in table:
    ID       Name      Position      Level              Date_Added                Flag_Name
    1       Jack       Manager        10         10/29/2013 11:00:00 PM          Match
    2       Tom        Supervisor     20            10/31/2013 9:00:00 AM       NoMatch
    1       Jack       Manager        15          11/1/2013  10:00:00 AM          Error
    1       Jack       Manager        20         10/1/2013  9:00:00 AM           NoMatch
    3       John       Salesman      5           10/4/2013  2:00:00 PM           Error
    1       Jack       Manager        17         9/28/2013  2:00:00 AM           NoMatch
    2       Tom        Supervisor     12         11/2/2013  10:00:00 AM          NoMatch
    4       Remy       Accountant     12        11/4/2013  1:00:00 PM           Error
    4       Remy       Accountant     19         11/3/2013  2:00:00 AM           Error
    2       Tom        Supervisor     10            10/29/2013 7:00:00 PM           Error
    I need to return latest data in query based on combination of (ID;Name;Position) and date range with below conditions:
    1) Need to return latest records for Flag_Name other than Match.
    2) If latest record for combination of (ID;Name;Position) will come with Flag_Name as Error in that specified date range, then we need to look for this combination has Flag_Name as NoMatch anywhere before in table.
    3) If Flag_Name as NoMatch is found for this, then we need to return it. In this case also, if we found multiple records with Flag_Name as NoMatch for combination of (ID;Name;Position), then we need to return latest one.
    4) Else we find no record for combination of (ID;Name;Position) with Flag_Name as NoMatch in table, then we can return the latest record with Flag_Name as Error.
    While select ID;Name;Position should be unique combination, as we always return latest data for it.
    As per above table, if I need to return data for date range between 29-Oct-2013 and 5-Nov-2013, expected result will be like below:
    ID       Name      Position      Level         Date_Added                      Flag_Name    
    1       Jack       Manager        20              10/1/2013  9:00:00 AM           NoMatch
    2       Tom        Supervisor     12             11/2/2013  10:00:00 AM          NoMatch
    3       John       Salesman        5              10/4/2013  2:00:00 PM           Error
    4       Remy       Accountant     12           11/4/2013  1:00:00 PM           Error
    Please let me know if anyone has any doubt about the logic. Is it possible if we can do it in select statement rather than pl/sql code?
    All comments/suggestions will be highly appreciated.
    Thanks in advance.
    Regards
    Dev    

    First i didn't read topic exactly )))
    here is second way. I get with stmt from Karthick (thanks)
    with t
        as
        select 1 id, 'Jack' name, 'Manager'    position, 10 lvl, to_date('10/29/2013 11:00:00 PM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Match'   flag_name
          from dual union all
        select 2 id, 'Tom'  name, 'Supervisor' position, 20 lvl, to_date('10/31/2013 09:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'NoMatch' flag_name
          from dual union all
        select 1 id, 'Jack' name, 'Manager'    position, 15 lvl, to_date('11/1/2013  10:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Error'   flag_name
          from dual union all
      select 1 id, 'Jack' name, 'Manager'    position, 20 lvl, to_date('10/1/2013  09:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'NoMatch' flag_name
        from dual union all
      select 3 id, 'John' name, 'Salesman'   position,  5 lvl, to_date('10/4/2013  02:00:00 PM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Error'   flag_name
        from dual union all
      select 1 id, 'Jack' name, 'Manager'    position, 17 lvl, to_date('9/28/2013  02:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'NoMatch' flag_name
        from dual union all
      select 2 id, 'Tom'  name, 'Supervisor' position, 12 lvl, to_date('11/2/2013  10:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'NoMatch' flag_name
        from dual union all
      select 4 id, 'Remy' name, 'Accountant' position, 12 lvl, to_date('11/4/2013  01:00:00 PM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Error'   flag_name
        from dual union all
      select 4 id, 'Remy' name, 'Accountant' position, 19 lvl, to_date('11/3/2013  02:00:00 AM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Error'   flag_name
        from dual union all
      select 2 id, 'Tom'  name, 'Supervisor' position, 10 lvl, to_date('10/29/2013 07:00:00 PM', 'mm/dd/yyyy hh:mi:ss am') date_added, 'Error'   flag_name
        from dual
    select ID,
           Name,
           Position,
           max(lvl) keep (dense_rank first order by с desc, Date_Added desc) lvl,
           max(Date_Added) keep (dense_rank first order by с desc, Date_Added desc) Date_Added,
           min(Flag_Name) keep (dense_rank first order by с desc, Date_Added desc) Flag_Name
    from(
    select  ID,
                Name,
                Position,
                lvl,
                Date_Added,
                Flag_Name,           
                decode(flag_name, 'Error', -1, 1) с
    from T
    where flag_name != 'Match'
    group by ID,Name,Position
    ID
    NAME
    POSITION
    LVL
    DATE_ADDED
    FLAG_NAME
    1
    Jack
    Manager
    20
    01.10.2013 09:00:00
    NoMatch
    2
    Tom
    Supervisor
    12
    02.11.2013 10:00:00
    NoMatch
    3
    John
    Salesman
    5
    04.10.2013 14:00:00
    Error
    4
    Remy
    Accountant
    12
    04.11.2013 13:00:00
    Error
    Ramin Hashimzade
    Message was edited by: RaminHashimzadeh

  • Use DISTINCT with two fields to return one record

    I am using OleDB with a SELECT DISTINCT query that is used in C# code to populate a DataGridViewComboBox.  The queried table has two fields: ID and Description. The ID field values are unique. Descriptions may be duplicated. The DataSource of my DataGridViewComboBox
    is ListBoxItems which is a ListBox that is populated from a table. The ValueMember is ID and the DisplayMember is Description.  A sample table might look like this:
    ID    Description
     1     Blue
     2     Blue
     3     Red
     4     Blue
    I want my query to return two records; one for the Red description and only one for the Blue description.  I don't care which Blue description it returns, but I do need the corresponding ID for the selected Blue record and the ID value for the Red record. 
    Using SELECT DISTINCT ID, Description FROM... would give me four records instead of two.  How can I return only two records in this scenario?
    Rob E.

    Using window function:
    create table #temp
    ID int,
    description varchar(20),
    insert into #temp Values(1,'blue')
    insert into #temp Values(2,'blue')
    insert into #temp Values(3,'red')
    insert into #temp Values(4,'blue')
    ;WITH CTE AS (select RN=ROW_NUMBER() OVER (PARTITION BY description ORDER BY newid() ),
    ID,description from #temp)
    SELECT ID, description from CTE
    WHERE RN = 1;
    ID description
    4 blue
    3 red
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Returning filtered records based on login password

    Hi,
    I'm using MySql / PHP / DW
    I have a 'login.php' page which has two fields USERNAME & PASSWORD, and a 'jobs.php' page which displays a list of Client's jobs.
    I need Client A to log in and only see Client A's jobs and so on for my various clients...
    I have two tables, USER and JOBS.
    USER TABLE
    client_id (primary key)
    username
    password
    access_level
    JOBS TABLE
    job_id (primary key)
    client_id
    client
    site
    install_date
    I need 'jobs.php' to display Client A's jobs based on the username and / or password he has entered.
    Do I have to create a query in MySql or can I achieve this within DW in recordsets or something? I'm very confused!
    Thanks

    I had to do something very similar using .asp and MSaccess many years ago, back then I had to create a query in Access which merged the two tables together and then I created a recordset from it in Dreamweaver. Can I replicate this using MySql / Phpmyadmin and have the query show up in Dreamweaver so I can create a recordset from it?
    Back to present day...How do I retrieve the id of a record?
    On the client records page I have entered this data below - can you tell me if this is correct? When I test it records are displayed but when I preview in browser the records page comes back empty.
    Simple view:
    Advanced view:

  • SEARCH (only returns one record?)

    When I run my search, it only returns the first record it finds. Can sombody give me a clue to why it won't return multipule records?
    try{
    //Connect to the Database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con =
    DriverManager.getConnection("jdbc:odbc:ComfortZoneDB");
    Statement s = con.createStatement();
    String sql = "SELECT * from Hydronics WHERE Keyword LIKE '%"+field+"%' order by Keyword";
    //Contains results from the SQL Query
    ResultSet rs = s.executeQuery(sql);
    // Displays it all out in a table
    while (rs.next()) {
    txt_search1.setText(""+rs.getString(1)+ "|" rs.getString(2) "|"+rs.getString(3)+ "|"+rs.getString(4)+ "|"+rs.getString(5)+ "|"+rs.getString(6)+ "|"+rs.getString(7));
    rs.close();
    s.close();
    con.close();
    catch(SQLException e){
    catch(Exception e){ 
    }

    Sir,
    Slappy presents Table Models 101.
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.util.*;
    public class SlappyReadOnlyTableModel{
      private LinkedList rows;
      private String[] colnames;
      private int[] coltypes;
      public SlappyReadOnlyTableModel(ResultSet rs)throws Exception{
        ResultSetMetaData rsmd = rs.getMetaData();
        colnames = new String[rsmd.getColumnCount()];
        coltypes = new int[rsmd.getColumnCount()];
        for(int i=0;i<colnames.length;i++){
          colnames[i] = rsmd.getColumnLabel(i+1);
          coltypes[i] = rsmd.getColumnType(i+1);
        rows = new LinkedList();
        // this bit checks the cursor position. if not at the start we move it there IF we can
        if(!rs.isBeforeFirst()){
          if(rs.getType()!=ResultSet.TYPE_FORWARD_ONLY){
            rs.beforeFirst();
        while(rs.next()){
          Object[] arow = new Object[colnames.length];
          for(int i=0;i<arow.length;i++){
            switch(coltypes){
    case Types.BOOLEAN:
    arow[i] = new Boolean(rs.getBoolean(i+1));
    break;
    case Types.DATE:
    arow[i] = rs.getDate(i+1);
    break;
    case Types.INTEGER:
    arow[i] = new Integer(rs.getInt(i+1));
    break;
    case Types.DOUBLE:
    arow[i] = new Double(rs.getDouble(i+1));
    break;
    // I have left out many cases. Adjust as required.
    default:
    arow[i] = rs.getString(i+1);
    rows.add(arow);
    public int getRowCount(){
    return rows.size();
    public int getColumnCount(){
    return colnames.length;
    public Object getValueAt(int row, int column){
    Object[] arow = (Object[]) rows.get(row);
    return arow[column];
    public boolean isCellEditable(int row, int column){
    return false;
    public String getColumnName(int column){
    return colnames[column];
    Save that as SlappyReadOnlyTableModel.
    Then invoke in your code like this...
    ResulSet rs = // whereever you get result set from.
    SlappyReadOnlyTableModel tm = new SlappyReadOnlyTableModel(rs);
    rs.close();
    JTable display = new JTable(tm);
    // now add your table where you likeToday was your lucky day. Please use the API and look at the tutorial for more. http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    Sincerely,
    Slappy

  • Single record in query are splitted inot two record after creating the view

    HI ,
           We have created one query and when we execute with characteristics combinations we get some record.
           we have created the view on the same query and when we execute the view ,the same record is splitted into 2 lines with some of the key figures are showing in one line and remainig are in other line.
    please suggest here.

    Look at your source data. Keep in mind that your queries are just that.. queries. The number of rows of results is not a reflection of the number of database records you have in your infoprovide. It is what your query asked the infoprovider to give you.
    For example:
    You have two records. Both records have the same 'customer'. One record has document number "A", the other has document number "B". Record "A" has key figures Sales and Profit, Record "B" has key figures Quantity and Margin.
    Query 1 asks for Customer, Sales, and Margin. It will return both records A and B as one row of data, with the Sales data from record A, and the Margin data from record B
    Query 2 asks for Customer, Document number, Sales, and Margin. It will return two rows of data... the first showing record A and Sales but no margin, the second showing record B and Margin but no sales.

  • Creation of a new record based on the value of a picklist

    Hi,
    My requirement is whenever i select a picklist value in Opportunity record type based on the value selected a new opprtunity record should get created and get assigned to a role or A User otherwise a lead should get created and should be assigned to a Role or A User.
    Can I achieve this in OnDemand?
    Kindly help. This is urgent..
    Thanks in Advance.

    Can I achieve this in OnDemand?I think you can better try one of the Oracle CRM On Demand forums @ http://forums.oracle.com/forums/category.jspa?categoryID=162
    instead of the Oracle SQL and PL/SQL forum.
    This is urgent..The forums are relying on volunteers and it is weekend for most of us now.
    If it is really that urgent, call Oracle Support.

Maybe you are looking for

  • How to create interactive report in SQ01

    HAI EVERY ONE, Can any one help me, how to create interactive report using SQ01,SQ02,SQ03. Plz explain me in details. I dont want simple report. I want to generate interactive report using SQ01. Is it possible how? I will give u good points if it is

  • Leopard on 1st Gen G5 iMac

    Has anyone installed Leopard on a (2004) 1st Gen G5 1.8 Processor with 768 MB of ram? If so, any problems? Thanks.

  • Mavericks Server Calendar and Contacts  services won't start.

    Recently the calendar and contacts services stopped working.  Client computers started getting errors like this: "The server responded with an error https://[some UID and a lot of other info]... is not a location that supports this request." It was s

  • Acrobat Reader DC Uninstalled my LiveCycle...

    Hello, I had to install Acrobat Reader on my PC yesterday for testing purposes and it apparently uninstalled my old copy of Acrobat Pro and LiveCycle and I want them back. Does anyone know how I can go about this? I'm kind of angry that Adobe did thi

  • USPS  Click-N-Ship

    Hello, I am trying to figure out how to use the Post Office's Click-N-Ship to print labels for mailing packages. I have dowloaded Adobe Reader Ver 8.0.0. When I attemtp to print a label, I get a print dialogue box. Hit the print button and nothing ha