Filter resultset  by column data

Hi there,
I have around 4 columns and 13000 rows with different sets of similar(by column values) data. After doing an equi join I would expect my Filter class to only publish rows of one set. Here APT is one set, BCX is another set and Activate till UpdateHttp is another set.
data set looks like,
APT_09001 xyz 20-03-02 passed
APT_09002 xyz 20-03-02 passed
APT_09002 xyz 20-03-02 passed
BCX_9324 jhg 30-01-01 passed
BCX_9325 jhg 30-01-01 passed
BCX_9326 jhg 30-01-01 passed
Activate-basic-001 xyz 20-03-02 passed
Activate-basic-002 xyz 20-03-02 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
APT_09001 xyz 20-03-02 passed
APT_09002 xyz 20-03-02 passed
APT_09002 xyz 20-03-02 passed
BCX_9324 jhg 30-01-01 passed
BCX_9325 jhg 30-01-01 passed
BCX_9326 jhg 30-01-01 passed
Activate-basic-001 xyz 20-03-02 passed
Activate-basic-002 xyz 20-03-02 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
UpdateHttp-basic-001 sdt 30-01-01 passed
goes on like this with another set
I want to display all the columns with only rows between the range(Activate%) and (UpdateHttp%) of all sets continously.
I have already used ResultSetMetaData class to display all rows and columns but the filter I am missing in the implementation.
Can someone suggest me about the code to implement that part!!
thanks a lot!

thanks for responding!
the range here I meant is nothing to do with Date. Actually speaking I do not want any range this was mis-understood. I just want to check the first column(varchar type) where for each row(data) a condition with a pattern(e.g.Activate%) is found then start printing all the rows that follow that row and stop printing until the row with this pattern (e.g. UpdateHttp%) is found.
Second question, is there a reason you are not doing this in the SQL? Are these coming from different result sets?First thing was I am new to sql programming and could find how to filter them out and secondly, this comes only from one result set and I thought a bit of java code would handle this with less effort. so if there is a sql it is most welcome or java code would also be a good idea

Similar Messages

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is it possible to view the content of multiple lists(located in multiple webs) in one ListViewWebpart? And how can I filter a multivalue column?

    Is it possible to view the content of multiple lists, that are located in different webs as well, in just one ListViewWebpart? Could I maybe change the query programmatically so that it get's the content this way?
    I know that I could use the Content Query Webpart instead - actually I have been using that so far, but the problem is, that it brings no standard Sharepoint functionality for lists with it... I had to write the xsl style sheet, there are no dynamic filters
    that the user could set, there are no default list operations the user could use.
    The ListViewWepart has all of these, but it only shows the content of one list...
    And my second problem:
    One column can contain multiple values (like a column that contains multiple users or user groups that are related to one entry). I can filter every other column with the standard filters, but not the column with multiple values in it. Is it possible to
    activate that or maybe add this feature programmatically?

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • How to check  which column data differs from master table and archive table

    Hi All,
    i have two tables, table a (a1 number,a2 varchar2,a3 varchar2) and table b (b1 number,b2 varchar2,b3 varchar2).
    how to check the data in both the table are same( including all columns).
    data in a.a1 is same as b.b1 and a.a2 is same as b.b2 like that.
    if they not same , i need to know which field differs.
    Kindly Share ur ideas.

    887268 wrote:
    thanks Sven W. ,
    above reply clearly shows what my question is.
    one column must be primary key, based on that key i need to find out which are the fields having different data..
    im strugling with this, i tried the following already, but not able to get.
    select the columns from a MINUS select the columns from b.
    -- from this i can find whether the difference occurred or not.
    but i cant able to get which are the fields value changed.Good. Then you would match the rows using the PK column and need to compare the columns
    Instead of a MINUS + UNION ALL + MINUS we can now use a FULL OUTER JOIN
    It is a little task to write out all column names, but 40 columns can be handled.
    This statement would show you both tables with matching rows on the same line.
    select a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.idNow filter/check for mismatches
    select case when a.col1 != b.col1 then 'COL1 value changed'
                    when a.col2 != b.col2 then 'COL2 value changed'
                    when a.col3 != b.col3 then 'COL3 value changed'
             end as compare_result
            ,a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.id
    /* return only non matching columns */
    where (a.col1,a.col2,a.col3) != (b.col1,b.col2,b.col3) You might need to add nvls to take care of null values. Test this!
    Another way could be to group upon the primary key
    select *
    from (
      select id 
               ,count(distinct col1)-1 cnt_col1
               ,count(distinct col2)-1 cnt_col2
               ,count(distinct col3)-1 cnt_col3
       from
         select 'A' source, a.*
         from a
         UNION ALL
         select 'B' source, b.*
         from b)
       group by ID
    /* only records with differences */
    where 1 in (cnt_col1, cnt_col2, cnt_col3)
    ;The count columns will hold either 1 or 0. If it is 1 then this column has a difference.

  • OBIEE Answer : SQL Filter for one column of the Dashboard sample : 201301

    I need to filter the report on the basis of one of the filter on the column which is created by custom calculation :
    YEAR ("Order Header Attributes"."Status Date" ) * 100 + WEEK("Order Header Attributes"."Status Date" )
    and this in the Number format.
    I need the filter as : 2013 + Week(CurentWeek) -1 = 201302
    Please help me create a custom SQL filter for the same.

    Anitha ,
    I am getting the error while doing it with Prompt :
    I went to the Dashboard on top Left next to results there is a Prompt there i clicked a new prompt i gave a name , description selsected my column in Filter on Column
    Operator : = is equal to / is in
    How should the user choose a value or values?
    * Select it from a drop-down list
    Browse through choices and/or type in directly
    * Single Value Only
    What values should be shown to the user?
    None
    All Values
    Limited Values
    * SQL Results (year("Status Date")*100) + WEEK_OF_YEAR("Status Date")-1)
    (The values returned by this SQL statement)
    Other options
    Choices per page
    (leave blank for automatic setting)
    Allow user to constrain choices
    Allow user to skip prompt
    I am doing correctly please help me in case i am not doing it correctly
    Regards ,
    Nidhi

  • Dynamic Filter on Hierarchical Column

    I have a parent-child hierarchy in my 11g Subject Area. I know it is possible to filter the hierarchical column using the Selection Steps and the “Select Members based on Hierarchy” option. But is it possible to dynamically filter the column using a Session Variable?
    My hierarchy is set up using the company’s department structure. The business need is for a line manager to have access only to data for their own departments, and any departments below in the hierarchy where applicable. A session variable in the repository knows who has logged onto OBI, and returns the relevant departments. Is it possible to use this variable to only display the relevant portion of the hierarchy?
    Thanks.

    Yes this is possible through external table authorization. Lets say you have hierrarchy table with different nodes in data warehouse. Lets consider w_hierarchy_d table for instance which has different columns like hier1_code, hier2_code etc. Create an external table with three different columns, username, hierarchynode, hierarchyvalue. Hierarchynode, gives the information on what level of hierarchy the user should be restricted, and the hierarchyvalue gives the actual value of the node user belongs to. Lets take a simple geography hierarchy as example;
    username hierarchynode hierarchyvalue
    user1 hier1_code Asia - Region
    user2 hier3_code florida - Office
    Using init block populate this data into session variables and create a filter on group/role like below:
    case when valueofnqsessionhiernode='hier1_code' then officetable.region
    when valueofnqsessionhiernode='hier3_code' then officetable.office
    end = valueofnqsessionhiervalue.
    I am positive the above model works as we implemented this before.
    Please Award points if helpful.
    Thanks,
    -Amith.

  • Need to filter the Master Column

    Hi Experts,
    I need to filter a master column in my wd table. I am not finding an option to get the filter text in VewController. Master column of the filter row is not enabled to enter filter text. Can some one suggest me how can I proceed to make filter enabled for master column?
    Thanks in advance.

    Hi,
    If you are using table UI element, you have to do some bit of coding to get the filter row.
    1. Define a context node with cardinality 1..1. This node should have the attribute(s) for which a filter is required, and the attribute should be that same data type as that of the column attribute.
    2. In the layout tab, for the specific table column for which filter is needed, bind the 'filterValue' property to the corresponding attribute created in step 1.
    3. Define and implement an event handler for the 'onFilter' event of the table. This event handler should programatically filter the table.
    Now, in the layout itself you should see the 'Filter row' for the table.
    Hope this helps,
    Regards,
    Wenonah

  • UWL Configuration : New Columns  & Data

    Dear All,
    We have HCM process and forms based processes.The work items go to portal UWL (standard UWL). Now client wants to modify/enhance UWL columns data. E.g. they want to add more columns which contain  leave form's data.
    For example:
    If leave request for an employee of Personal Area "west" (this data is available in the form), a  UWL column " Personal Area" should have data as "west" shown in the work item row.
    How can we read form's data and pass it to UWL columns ? This will help users to filter required work items easily.
    Chohan

    Hi Sandy,
    So you want specific dynamic behaviour on the nature or kind of task.
    Thats interesting.
    What my knowledge suggests is that you can do the following:
    1) Download UWL's xml file.
    2)Create a new item type i.e for these special WF tasks.
    3)Add the Add Memo action to this item type
    4)Make a subview for these item types.
    Read the [UWL configuration pdf |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45]before doing this.
    I hope it helps.
    Regards,
    Sumit
    Edited by: Sumit Oberoi on Feb 26, 2008 12:55 PM

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

  • Splitting Column Data in a Ticker View

    Hi All,
    How to split the column data into Rows rather in a Single Row in a Ticker View?
    I have created a Request with 3 columns viz., Emp ID, EName and Salary. In Ticker View, diplaying the data in 3 rows. But, I would like to display the data as we see in a Table Format i.e.,
    1 John 10000
    2 Allen 15000
    Instead of
    1 2
    John Allen
    10000 15000
    Thanks,
    -Vency

    Hi,
    Thanks for giving Reply.
    I knew that we can use HTML tags. I have done with Creating Table and used @{Column_Number} in Row Format.
    <Table><tr><td>@2</td></tr><tr><td>@3</td></tr></Table>
    Here, @2 is a Second Column Data is occupying only one row i.e., displaying John Allen. But I need to display Allen in the next line as I gave the example in the previous post. I am not getting the way How can I Split that @2 into multiple rows.
    Is you are expecting me to do in other way? please suggest..
    Thank You,
    -Vency

  • Show Column Data In One Row

    Hello,
    Tell Me how i can show a single column data in one row.
    10
    20
    30
    To
    10,20,30

    If you are OK with displaying comma separated list or column data you could:
    SQL> select  ltrim(sys_connect_by_path(ename,','),',') ename_list
      2    from  (
      3           select  ename,
      4                   row_number() over(order by 1) rn,
      5                   count(*) over() cnt
      6             from  emp
      7          )
      8    where rn = cnt
      9    start with rn = 1
    10    connect by rn = prior rn + 1
    11  /
    ENAME_LIST
    SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,MILLER,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,CLARK
    SQL> To display as separate columns you would need to either know number of rows:
    SQL> select  min(case rn when 1 then ename else null end) ename1,
      2          min(case rn when 2 then ename else null end) ename2,
      3          min(case rn when 3 then ename else null end) ename3,
      4          min(case rn when 4 then ename else null end) ename4,
      5          min(case rn when 5 then ename else null end) ename5,
      6          min(case rn when 6 then ename else null end) ename6,
      7          min(case rn when 7 then ename else null end) ename7,
      8          min(case rn when 8 then ename else null end) ename8,
      9          min(case rn when 9 then ename else null end) ename9,
    10          min(case rn when 10 then ename else null end) ename10,
    11          min(case rn when 11 then ename else null end) ename11,
    12          min(case rn when 12 then ename else null end) ename12
    13    from  (
    14           select  ename,
    15                   rownum rn
    16             from  emp
    17          )
    18  /
    ENAME1  ENAME2  ENAME3  ENAME4  ENAME5  ENAME6  ENAME7  ENAME8  ENAME9  ENAME10  ENAME11  ENAME12
    SMITH   ALLEN   WARD    JONES   MARTIN  BLAKE   CLARK   SCOTT   KING    TURNER   ADAMS    JAMES
    SQL> or use dynamic SQL.
    SY.

  • Can i see the column DATA(BLOB type) in PM_OBJECTS of DCM schema

    we installed DCM managed clustering .it is Database repository type.
    i am trying to see the column DATA(BLOB type) in PM_OBJECTS of DCM schema .
    I wrote a program in java to read blob data type and write it into a temporary file.
    when i open temporary files all the data in junk format.
    can i see the real data of thatcolumn.Is it possible?
    first of all for what purpose DCM shema will be used?

    Hi,
    There is no option to show the comments on the diagram.
    We plan to add such feature in the next version.
    Ivan

  • How to filter the list of data

    I am using af:inputComboboxListOfValues to display drop down list of data. The list is binded to a LOV.
    I have a requirement that if the value is used in other place, I should not get it listed on the drop down list. I research doc that it let me use "launchPopupListener" to filter the list of data. As a test code, I coded like this:
    public void launchListener(LaunchPopupEvent launchPopupEvent) {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("PersonVO1Iterator");
    dcItteratorBindings.getViewObject().setWhereClause("PersonEO.FIRST_NAME <> 'John'");
    dcItteratorBindings.getViewObject().executeQuery();
    But it does not work. It seems that 'John' is removed from VO but doesn't removed from UI combo box drop down list.
    What can I do to fix it?
    JDev Version 11.1.1.6.0
    Thanks.
    帖子经 954727编辑过

    Morris Li,
    Welcome to the ADF Forum. Have you looked into whether the PartialTriggers for the ui combo box have been set.
    This article may also assist: "Building model driven dependent list with Oracle ADF BC"
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf
    and this http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_ppr.htm#BGBIIDBF
    Stuart

  • Filter Function in Column Formula is not working properly

    Hi,
    I am using Filter Function in Column formula tab in Answers to calculate the Total sum from the start of the Fiscal month to the Month selected from the Prompt.
    My requirement is I have total sales column. Now I need to calculate TYYTD kind of thing for which I cant use the Time sereis due to my report constraint.
    Instead of that I am using this Filter function on TYYTD column where i am giving the filter as start of the Fiscal month to the month selected from the Prompt.
    For example if I select May month from the Prompt then this TYYTD column should give me SUM(Total Sales) between Feb and May for which I am using the Filter Function. But it giving me only May sales whcih is same as Total Sales column.
    Can anyone throw some light on this as this is very important for us or any alternate solution other than Time sereis measures.
    Did anyone got this kind of issue with Filter Function?
    Regards,
    Azad

    Ok...here's the steps to fix this as efficiently as possible.  I have a whole bunch of mailboxes under "On My Mac" and they have a bunch of mailboxes nested in them.  I get my messages into Apple Mail via IMAP.  (I don't know if this matters.)  The steps below assume you have a similar setup.
    1.  Hold the Option key down and click the dropdown arrow next to each mailbox that has one.  This will cause all nested mailboxes below it to appear.
    2.  Go to the top of the list of mailboxes under "On My Mac" and highlight the first mailbox.  Then hold the Shift key down and highlight the last mailbox in the list.  This will cause all of the mailboxes and nested mailboxes to be highlighted.
    3.  From the menu, select "Mailbox --> Rebuild" and the rebuild process will start.
    4.  Watch the top of the mail screen to see the message count change as the mailboxes are being rebuilt.  Wait until the activity stops before doing the next step.
    5.  As the mailboxes were rebuilt, many messages were reset as "Unread" even though every message was previously "Read."  Make sure the mailboxes you want to affect are still highlighted.  Right-click and select "Mark All Messages Read."
    That fixed the problem for me.

  • Store the value  in BLOB column data type

    Hi All,
    I have a file of about 5MB. I want to store this in BLOB column data type of a table.
    Can we compress this file to store and when we take uncompress the same...or how do we do it.
    and what is the procedure to store this....
    pls. help me
    Thanks,
    Naresh

    Hi skud
    i juast want to store the agent code to variable.if i did get ur point...
    Why don't u just use a simple assign statment for example...
    DECLARE
    V_VALUE  NUMBER;
    BEGIN
    V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
    -- or u could use any value
    V_VALUE := :ur_form_item_name; --- if it was dynamic
    END;That's it .
    Hope this helps...
    Regards,
    Ammatu Allah.

Maybe you are looking for

  • Fault message handling in BPM

    Hi again xi fighters I created a business process with a synchronous sending step. I defined all interfaces and implemented also an own fault message type within the synchronous abstract interface. If the used RFC got the correct data the sync. sendi

  • Microsoft Apps, Nokia E6

    Microsoft apps just showed up in my software updater.  Has any other E6 user installed this? Looking for comments/Reviews. Solved! Go to Solution.

  • How to check owner for one interface in production system?

    Hello All, Please tell me the transaction were i can check owner for one interface in production system. Client had created owner for one interface, so were can i check it. Thanks and Regards, Chinna

  • WebLogic cant execute a servlet

    Hi! Does anybody know how to debug or get more information about such a situation? There are some servlets working on Sun with WebLogic. Log file show me: ####<Nov 27, 2002 12:44:34 PM EET> <Error> <Posix Performance Pack> <egw> <agserver> <ExecuteTh

  • Volume change 'clicks'?

    I've noticed that on few occasions after the 10.4.4 upgrade, my volume has behaved strangely, when changing it using the keyboard shortcuts -- the volume increases or decreases lags behind my keypresses, and my speakers emit a soft, percussive clicki