How to display data in the same row

Hi i have a data like this
sales_order_no shipped_amount aggregate_source_order_num
1 10000 sao/1
1 10000 sao/2
2 10000 sao/4
2 10000 sao/5
2 10000 sao/6
now i want to disply like this:
sales_order_no shipped_amount aggregate_source_order_num
1 10000 sao/1,sao/2
2 10000 sao/4,sao/5,sao/6
can anybody help me how to do it??
i really appreciate your help.

or
SQL> set linesize 120;
SQL> with sales_order as
  2   (select 1 sales_order_no, 10000 shipped_amount, 'sao/1' aggregate_source_order_num from dual union all
  3    select 1 sales_order_no, 10000 shipped_amount, 'sao/2' aggregate_source_order_num from dual union all
  4    select 2 sales_order_no, 10000 shipped_amount, 'sao/4' aggregate_source_order_num from dual union all
  5    select 2 sales_order_no, 10000 shipped_amount, 'sao/5' aggregate_source_order_num from dual union all
  6    select 2 sales_order_no, 10000 shipped_amount, 'sao/6' aggregate_source_order_num from dual)
  7  select so.sales_order_no,
  8         so.shipped_amount,
  9         substr(max(substr(sys_connect_by_path(so.aggregate_source_order_num,','),2)),1,60) aggregate_source_order_num
10    from (select sales_order_no,
11                 shipped_amount,
12                 aggregate_source_order_num,
13                 row_number() over (partition by sales_order_no, shipped_amount
14                                    order by sales_order_no, shipped_amount) rn
15            from sales_order) so
16  start with so.rn = 1
17  connect by so.rn = prior so.rn + 1
18  and prior so.sales_order_no = so.sales_order_no
19  group by so.sales_order_no,
20           so.shipped_amount;
SALES_ORDER_NO SHIPPED_AMOUNT AGGREGATE_SOURCE_ORDER_NUM
             1          10000 sao/1,sao/2
             2          10000 sao/4,sao/5,sao/6
SQL>

Similar Messages

  • How to display data with the same text and key in the drop down list?

    Hi All,
    Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    REPORT ZTESTING.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          c(20) type c.
    *      c = 'select any'.
    data:begin of itab occurs 0,
          kunnr like kna1-kunnr,
          name1 like kna1-name1,
         end of itab.
    data:begin of jtab occurs 0,
          kunnr like kna1-kunnr,
          land1 like kna1-land1,
         end of jtab.
    PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
                              default 'SELECT'.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'p_list'.
    VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    APPEND VALUE TO LIST.
    VALUE-KEY = '2'.
    VALUE-TEXT = 'Country'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    start-of-selection.
    select kunnr name1 up to 20 rows from kna1 into table itab.
    select kunnr land1 up to 20 rows from kna1 into table jtab.
    case p_list.
    when '1'.
    loop at itab.
    write:/ itab-kunnr,itab-name1.
    endloop.
    when '2'.
    loop at jtab.
    write:/ jtab-kunnr,jtab-land1.
    endloop.
    endcase.
    <Added code tags>
    Moderator Message: Please use the "code" tags to format your code snippet.
    Edited by: Suhas Saha on Nov 17, 2011 11:19 AM

    shawnTan wrote:
    Hi All,
    >
    > Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    >
    >
    REPORT ZTESTING.
    >
    > TYPE-POOLS: VRM.
    >
    > DATA: NAME  TYPE VRM_ID,
    >       LIST  TYPE VRM_VALUES,
    >       VALUE LIKE LINE OF LIST,
    >       c(20) type c.
    >
    > *      c = 'select any'.
    >
    > data:begin of itab occurs 0,
    >       kunnr like kna1-kunnr,
    >       name1 like kna1-name1,
    >      end of itab.
    >
    > data:begin of jtab occurs 0,
    >       kunnr like kna1-kunnr,
    >       land1 like kna1-land1,
    >      end of jtab.
    >
    > PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
    >                           default 'SELECT'.
    >
    > AT SELECTION-SCREEN OUTPUT.
    >
    > NAME = 'p_list'.
    >
    > VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    > VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    > APPEND VALUE TO LIST.
    >
    > VALUE-KEY = '2'.
    > VALUE-TEXT = 'Country'.
    > APPEND VALUE TO LIST.
    >
    > CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    >
    > start-of-selection.
    > select kunnr name1 up to 20 rows from kna1 into table itab.
    > select kunnr land1 up to 20 rows from kna1 into table jtab.
    >
    > case p_list.
    > when '1'.
    > loop at itab.
    > write:/ itab-kunnr,itab-name1.
    > endloop.
    >
    > when '2'.
    > loop at jtab.
    > write:/ jtab-kunnr,jtab-land1.
    > endloop.
    > endcase.
    >
    > <Added code tags>
    >
    > Moderator Message: Please use the "code" tags to format your code snippet.
    >
    > Edited by: Suhas Saha on Nov 17, 2011 11:19 AM
    This surely seems to be a bug to me(if not by design),  did you check for any SAP notes? Perhaps a front end trace can help(Note 407743) !
    -Rajesh.

  • How to display data in the same tab components ?

    Hi,
    I have a tabbed pane and contains 3 tabs. I have entered some value in the text field and clicked the enter button in the 3rd tab.This enter button contains some validation code and after validation it will display some data in the text area in the same tab. In the mean time , i am navigating to another tab eg first tab. But my data is displayed in the second tab instead of 3rd tab.
    can anyone help me to solve this ?
    bye for now
    sat

    But my data is displayed in the second tab instead of 3rd tab.
    can anyone help me to solve this ?Then you are updating the component on the second tab. Fix your code.

  • Gantt view - multiple dates in the same row

    Hi,
    I created gantt view showing employees' vacations. Some of them have their holidays split into several dates (periods). How can I show those multiple dates in the same row in the gantt view? I can only show start date and end date of one vacation, but would
    like to enter multiple periods to be shown in the gantt view, in the same row.
    Thanks.

    You can't using the OOTB gantt chart so you would have to look at custom development or 3rd party web parts.
    Such as (blatant plug but it directly answers the OP question) my own companies Planner web part.
    http://www.pentalogic.net/sharepoint-products/planner
    The By Category view puts timelines on the same row so its ideal for things like vacation planning, room booking etc.
    This page shows it in use.
    http://blog.pentalogic.net/2010/08/sharepoint-staff-vacation-planner-absence-wall-chart-dashboard/

  • How to populate data in the same table based on different links/buttons

    Hi
    I'm using jdeveloper 11.1.4. I have a use case in which i need to populate data in the same table based on click of different links.
    Can anyone please suggest how can this be achieved.
    Thanks

    I have a use case in which i need to populate data in the same table based on click of different linksDo you mean that you need to edit existing rows ?
    What format do you have the date in - table / form ?

  • How to insert data to the specified row column of the multi column list box

    Hi All
    How do i insert data into the specified column of the multi cplumn list box?
    I have a table that containsall station nos and name.Then another table contains the data the various stations having at  for 24 hrs.That is 12 am to 11 pm.
    And i want to display each stations details as follows using a multi column list box/table
    My stationinfo table
    stnno   stnname......................
    s1           stn1
    s2            stn2
    s3             stn3
    The other table
    stnno      sysdatetime       data
    s1             12am                   1
    s2              12am                   4
    s1               1  am                 2
    So the station s1,s2.... will have data for 24 hrs.
    And i want to display it as follows using a multicolumn listbox
    stnname        12am   1 am ......................................11pm
    s1                   ...................
    s2                 ........................
    What i have in my  mind is to get all station nos
    and in a for loop get the station's data from 12 am to 11 pm
    or
    select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
    Or any other better query available?
    Can anybody suggest me a good idea?
    One more thing...how to insert data into the specified field row or column of a multi column list box?
    Thanks in advance

    hi
    i want to know,,can u say ur need clearly...and i attached two image u see that one
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    station.JPG ‏35 KB
    station2.JPG ‏79 KB

  • Column Link - how to get back to the same row on previous form

    Using Apex 3.2.1
    I've created a column link on an updateable report which opens up another page for data entry. This is working fine but when you return to the originating page, is there a way to get back to the same row you were on before linking.
    The user enters a number in the AMOUNT field. A validation trigger says they need to enter an EXPLANATION. They link to the EXPLANATION page. But when they return to the first page, they don't know which row they were on AND the value they originally entered in AMOUNT is back to the database value. So is there a way to preserve the AMOUNT value and rowid from the originating page?
    Hope this makes sense and appreciate any and all help!
    Sandie

    Hi Sandie,
    I may not be understanding the requirements completely, but one thing that strikes me off the bat is it sounds like what you need isn't really a "validation" per se. The data the user is entering may be perfectly valid, it's just that in certain circumstances additional information is required. I only mention this because an ApEx validation by definition shouldn't allow changes to be made to the database - but in your case it sounds like the information entered up to that point can be saved (as long as it satisfies actual data validation rules), but then additional information for certain rows is required.
    One thing you might consider is having the Explanation page pop-up in a new window. So user is on tabular form with current row visible - user clicks on explanation link which pops up a new page - user enters explanation and clicks "submit" - pop-up page disappears leaving user right where he/she was.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • How to retirve data in the same sequence as it is entered by user.

    Dear All,
    Can anybody please help me to resolve the below oaf issue.
    Issue : In one of the column in advanced table is OAMessageTextInputBean. User will enter data as
    1) color
    2) size
    3) name.
    I set the properties of Text inputBean Heigth and length. so when ever user enter more data automatically scrollbar is getting to scroll up and down. So far ok. But,
    When i want to represent this data in view mode, i am using OAMessageStyledText bean. But i data enter abouve is getting in the same line as
    1) color2)size3)name.
    I want to show the data entered by user in textInput same in message Styled Text, basically sequence. So, Could anybody help me how to achieve this requirement?
    Thanks in advance,
    Hasine K.

    hi,
    in advance table create a item rawtext and add HTML tag and use <br> tag for breaking the line.........for more go to OAF Userguide

  • How to display result in the same portlet

    Hi,
    I've a dynamic page with some links in there. I want to display the results of the links in the same portlet. Can anyone please let me know how can I achieve this?
    Thanks in advance.
    Regards,
    Jatinder

    You can check in portalstudio.
    Pls see Re: probem with databse connection using OCI driver

  • How can you update to the same row when........

    Ok so now I have Session variables working correctly and come
    to find out that my host creates a new DB connection for each page
    displayed. So the Last_Insert_ID() will not work because of the new
    connection each time. What are my options for updating a row after
    an insert. I am using MySQL 4.1 and CF 7.
    Thanks
    Shane

    Hi Sankalan, thanks for your input. I am trying now to get
    the following code to work on the Insert page and keep getting this
    error "Element AD_ID is undefined in LASTINSERTID"
    Not sure what is wrong but I have tried many different
    changes and it still will not clear the error.
    Any help would be great.
    Shane
    <cfparam name="SESSION.Last_Insert_id" default="1">
    <cflock scope="Session" timeout="30" type="Exclusive">
    <cfset SESSION.LAST_INSERT_ID=#LastInsertid.AD_ID#>
    </cflock>
    <cfquery name="LastInsertID" datasource="saa">
    SELECT LAST_INSERT_ID() AS AD_ID;
    </cfquery>
    <cfoutput>#LastInsertid.AD_ID#</cfoutput>

  • How to merge dates in the same year in one column in rdlc report ?

    dears 
    I need to create like this report but I cannot merge the transactions in the days in one column return to the month as in the table
    Delivery Schedule
    2010
    2011
    2012
    2013
    2014
    Model / Month
    Total
    Total
    Total
    Total
    Jan
    Feb
    March
    April
    May
    June
    July
    Aug
    Sep
    Oct
    Nov
    Dec
    Total
    item1
    0
    item2
    11
    1
    1
    2
    item3
    3
    1
    1
    2
    item4
    14
    1
    1
    1
    1
    1
    1
    1
    7
    item5
    10
    2
    2
    1
    1
    1
    4
    10
    1
    1
    1
    1
    25
    item6
    0
    item7
    7
    1
    1
    2
    1
    1
    1
    7
    item8
    19
    4
    4
    5
    11
    10
    4
    7
    13
    2
    5
    3
    68
    item9
    1
    2
    1
    1
    5
    item10
    15
    3
    5
    5
    5
    8
    5
    3
    7
    5
    8
    1
    3
    58
    item11
    63
    15
    8
    4
    12
    6
    11
    8
    7
    24
    11
    6
    112
    item12
    3
    1
    1
    1
    1
    1
    2
    1
    2
    10
    item13
    32
    3
    7
    7
    7
    8
    5
    5
    10
    2
    54
    item14
    16
    3
    2
    5
    7
    9
    8
    6
    3
    2
    45
    Total Delivery
    0
    0
    0
    193
    29
    29
    21
    26
    51
    36
    40
    40
    44
    38
    25
    16
    395

    Hi Eng ,
    Based on my understanding, the date field exists in the database, then you want to display the corresponding year and month within the report and perform sum total,right?
    In your scenario, since you haven’t provided the sample data, we create the database with some data. Then design the report with the structure you provided. Please refer to our test steps and results:
    1. Create the database with the query below:
    create table test1
    [item] nvarchar(50),
    [date] date,
    value int)
    insert into test1 values
    ('item1','2014/02/08',10),
    ('item2','2014/02/22',56),
    ('item3','2014/07/18',45),
    ('item3','2014/07/18',40),
    ('item4','2015/02/26',36),
    ('item5','2015/02/12',79)
    2. Design the report like below:
    3. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to display data on the bases of master plan in Quality Results

    Dear,
    I have been woking on quality results to insert data through interface in child view(Q_COTTON_TEST_CHILD_IV) which is auto generated view as built-in functionality. Master quality plan has been inserted from fron-end while child data inserted throught interface & fron end as well. In quality module, when select child plan and call detail but don't appeare data which inserted through interface table while manual entry of chile record is being displayed,
    Still, i have coufused that how can we make relation between parent & chile record while inserting data through interface table.
    Kindly please advice to get this.
    thnks...

    Dear,
    I have been woking on quality results to insert data through interface in child view(Q_COTTON_TEST_CHILD_IV) which is auto generated view as built-in functionality. Master quality plan has been inserted from fron-end while child data inserted throught interface & fron end as well. In quality module, when select child plan and call detail but don't appeare data which inserted through interface table while manual entry of chile record is being displayed,
    Still, i have coufused that how can we make relation between parent & chile record while inserting data through interface table.
    Kindly please advice to get this.
    thnks...

  • How to display data depend upon ListBox value?

    Hi Experts and Particularly Hema,
    As I asked before how to display data in the ListBox, I got an very good response from you all(particularly Hema) .
    Now what my doubt is asked with sample scenario below:
    In Screen Painter -
    Two fields namely : One List Box and other is I/O used only for displaying purpose i.e., only for output, not for input purpose.
    List Box is filled by primary key field(C1) value from one table(T1) when the screen load.(i.e., such code is written in PBO).
    Now what I need is :
    If the user select any one value in the List Box then it automatically display the corresponding C2 value from T1 in the I/O field.
    I think you may all understand what I am trying to ask.Please let me know the solution.
    Thanks in advance,
    Regards,
    Raghu

    Simply attached a function code for the listbox... when the user changes the value, you will be able to pick this up in the PAI and loop back to the PBO and redisplay the corresponding output field.
    Jonathan

  • FillBy always fills in the same row in data grid view. How to make it fill in a new row for each click of the Fillby Button? VB 2010 EXPRESS?

    Hi there, 
    I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
    database using the fillby query. 
    It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
    each click of the fillby button. 
    also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered. 
    so actually 2 questions here: 
    1. how to populate a new row for each click of the fillby button 
    2. how to delete records from data grid view after an item has been entered 
    Thanks 
    Vishwas

    Hello,
    The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
    Some examples
    Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
    to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
    The following article with code shows this but does not address adapters.
    Conceptually speaking the code in the second code block shows how to get the new key
    Public Class Form1
    Private Sub StudentsBindingNavigatorSaveItem_Click(
    sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.StudentsBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
    Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
    End Sub
    End Class
    Get new key taken from
    this article.
    Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
    Dim Success As Boolean = True
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText = InsertStatement
    cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
    cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
    cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
    cn.Open()
    cmd.ExecuteNonQuery()
    cmd.CommandText = "Select @@Identity"
    Identfier = CInt(cmd.ExecuteScalar)
    End Using
    End Using
    Catch ex As Exception
    Success = False
    End Try
    Return Success
    End Function
    In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
    Additional resources
    http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to display current postion and previous position in the same row?

    I need to produce a promotions/transfer report that gives the employee's current position as well as his/her previous position in the same row.
    for example:
    Employee current position current organization current company previous postion previous organization previous company
    Jane Smith Executive PA ZYX ltd Harmony personal assistant ABC ltd Yahoo
    I am using the per_all_people_f, per_all_assignments_f, per_periods_of_service, hr.all_organization_units, per_all_positions tables
    Somehow i cannot manage to display the previous position. I can only get so far to display the current postions
    Any ideas? here is the full code
    --this query gives current info
    select ppf.employee_number, ppf.full_name
    , (DECODE (ppf.sex, 'M', 'Male', 'F', 'Female') ) gender
    , (DECODE (ppf.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race
    , ppf.ORIGINAL_DATE_OF_HIRE
    , paf.EFFECTIVE_START_DATE current_postion_start_date
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Current_Position
    , ho.name Current_Organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) current_company
    from per_all_assignments_f paf,
    hr_all_positions_f_tl hpt,
    hr_all_organization_units_tl ho,
    per_all_people_f ppf
    --where paf.person_id = 16170
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ASSIGNMENT_NUMBER is not null
    and ho.organization_id = paf.organization_id
    and ppf.person_id=paf.person_id
    and paf.EFFECTIVE_START_DATE between ppf.EFFECTIVE_START_DATE and ppf.EFFECTIVE_END_DATE
    order by paf.EFFECTIVE_START_DATE
    --this query gives previous position, organization and company
    select ass.EFFECTIVE_START_DATE
    , RTRIM (SUBSTR (hpt.NAME, 1, INSTR (hpt.NAME, ';') ),';')Previous_Position
    , ho.NAME previous_organization
    , xx_return_structures.xx_return_company_name
    (paf.person_id,
    paf.effective_start_date
    ) previous_company
    from per_all_assignments_f paf, hr_all_positions_f_tl hpt, hr_all_organization_units_tl ho
    where paf.person_id = 16170
    and paf.EFFECTIVE_START_DATE not in (select max(paf.EFFECTIVE_START_DATE)
    f rom per_all_assignments_f paf
    where ass.person_id = 16170)
    and paf.PRIMARY_FLAG ='Y'
    and paf.POSITION_ID=hpt.POSITION_ID
    and paf.ORGANIZATION_ID=ho.ORGANIZATION_ID

    Ok so here is my problem. The current position display 3 times. The rest is correct. it only display once. Any ideas on how to get rid of the 2 extra rows that is being displayed with the current position?? I only need the current position to display once with the previous position info.
    select distinct pvs.person_id,
    peo.EMPLOYEE_NUMBER empno,
    peo.FULL_NAME,
    (DECODE (peo.sex, 'M', 'Male', 'F', 'Female') ) gender,
    (DECODE (peo.per_information4
    ,'01', 'Indian'
    ,'02', 'African'
    ,'03', 'Coloured'
    ,'04', 'White') ) race,
    peo.ORIGINAL_DATE_OF_HIRE,
    pvs.EFFECTIVE_START_DATE curr_start_date,
    RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') current_position,
    pvs.ORGANIZATION current_organization,
    substr(pvs.PAYROLL,5)current_company,
    a1.previous_position,
    a1.previous_organisation,
    a1.previous_company
    from per_periods_of_work_v pv,
    per_assignments_v2 pvs,
    per_all_people_f peo,(select distinct RTRIM (SUBSTR (pvs.job, 1, INSTR (pvs.job, ';') ) ,';') previous_position,
    pvs.ORGANIZATION previous_organisation,
    substr(pvs.PAYROLL,5)previous_company,
    pvs.job_id job_id,
    pvs.organization_id,
    pvs.position_id,
    pvs.location_id,
    pvs.PERSON_ID,
    pvs.PEOPLE_GROUP_ID,
    pvs.EFFECTIVE_END_DATE,
    pvs.EFFECTIVE_START_DATE
    from per_assignments_v2 pvs
    where sysdate > pvs.EFFECTIVE_END_DATE
    and pvs.person_id=4723
    )a1
    where peo.person_id = pvs.person_id
    and pvs.person_id = pv.person_id
    and a1.person_id = pvs.person_id
    and pvs.EFFECTIVE_START_DATE between peo.EFFECTIVE_START_DATE and peo.EFFECTIVE_END_DATE
    and pvs.PEOPLE_GROUP_ID <> a1.people_group_id
    and pvs.JOB_ID <> a1.job_id
    and pvs.ORGANIZATION_ID <> a1.organization_id
    and pvs.position_id <> a1.position_id                     activating this elimnates 1-Feb-2008 info
    and pvs.effective_start_date -1 = a1.effective_end_date     activating this eliminates 1-feb-2008, 1-jul-2006, 1-april-1996 info
    and pv.person_id = 4723
    order by pvs.effective_start_date desc

Maybe you are looking for

  • Error when calling getAllServerPools() using WebService API

    Hi, I try to get All the Server Pool created on my Oracle VM Manager with the WebService API, but i'm get an error. Here is the code (I used the wsimport to create proxy class Oracle VM 2.2.0): - 1.Get "AdminService Webservice" --> OK private AdminSe

  • How to make a button show AND hide a field?

    In an interactive form (with Adobe Acrobat X Pro), how can I purpose one button to: 1.) Show a field when clicked the first time 2.) Hide a field when clicked a second time I seem to only be able to make a button do one or the other, but not both wit

  • Photoshop CS3 does not recognise gif or png

    When trying to open a gif or png, I receive the message: "Could not complete your request because Photoshop does not recognise this type of file" I am running CS3 and have just added the 10.5.3 update.

  • X220 Won't boot Samsung 830 SSD

    I have a Lenovo X220 laptop with a 320GB Hitachi hard drive, and it works just fine. But I decided I needed more speed, so I bought a Samsung 830 SSD for it. I cloned the entire X220 hard drive to the SSD (using a USB external case and HDClone4), and

  • What it is for Bonjour? Is something wrong if I deactivate the program?

    hi there, I don't know which is the main use of Bonjour, I don´t know it is or not good to deactivate or uninstall the program. I was going to do that, but in other forums I read that getting done that action could have bad results on iTunes, so I di