How to filter duplicates from XMLListCollection

I have been trying to filter duplicates from XMLListCollection using FilterFunction.  However, it filters on the main XML tag, which happens to be the same value on all tags in this particular XML.  The values only vary in the parameters, and I need to filter the duplicates on one of them.  Is there any way to do that?

yep, there are several ways out there
The easy oneDo not add duplicates to the XMLListCollection
Complicated one, extend XMLListCollection with Boolean property 'strict', override method addItemAt and trace duplicates in there.
Super easy one is to drop XMLListCollection usage in favor of Dictionary class, it's natural capabilities will allow you to maintain strict rule for your data, just use distiction property as a key value with Dictionary class, and you are done

Similar Messages

  • How to filter results from 4 dynamic list menus depandant on how many of them are selected

    I have a search page with a form with 4 list menus and 1 submit that post the results to the results page. I can create a record set that either retrieves the correct data from my database if a selection is made from all four menus Or i can create the recordset if only 3 menus have a selection or the same for 2 menus and 1 menu. However i want the user to be able to make a selection from either 1, 2, 3 or all 4 of the menus and the exact data be retrieved. At present if i try to combine the recordset using AND and ORs the results are not specific enough, for example the 4 menus are Location, Type, Price & Style if a user selects from all 4 i only want to retrieve data that matches all 4 criteria, but at the same time if the user selects only 2 of the menus the i want it to retrieve data that matches specifically those 2 variables. I´m not actually sure if i should be creating a more advanced sql query of if its the php side of things that i need to look at. This is my first dynamic site so please be aware i´m still a learner where php and sql is concerned. Please can anyone help?  

    Hey there,
    Thanks for replying,
    I too am using Dreamweaver recordset, my local server is XAMPP ( apache php mysql), i´have pasted my sql recordset below to give an idea of what i´m trying to do, however this does not work as i´m trying to select the exact data based on 4 menus PRICE TYPE LOCATION and BEDS, and also want the search to work if the user only selects options from either 1, 2, 3 or 4 of the menus, with the code as it is if the user select only two options from 2 of the menus the results don´t just find (for example) all results for location AND price they find all results for the location varibale OR the price variable rather than a match for both, if you see what i mean?
    Any suggestions?  
    SELECT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number`
    FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid
    WHERE (location=varloc AND price = varprice AND type=vartype AND beds=varbed ) OR (price=varprice AND location=varloc AND type=vartype) OR  (price=varprice AND location=varloc AND beds=varbed) OR (price=varprice AND beds=varbed AND type=vartype) OR  ( location=varloc AND type=vartype AND beds=varbed) OR  (price=varprice AND location=varloc) OR (price=varprice AND type=vartype) OR (price=varprice AND beds=varbed) OR (type=vartype AND location=varloc) OR (type=vartype AND beds=beds) OR (location=varloc AND beds=varbed) OR (price = varprice OR beds=varbed OR type=vartype OR location=varloc)
    ORDER BY detailstable.trueprice ASC
    Look forward to receiving your thoughts,
    Linda
    Date: Wed, 21 Oct 2009 14:36:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: how to filter results from 4 dynamic list menus depandant on how many of them are selected
    Hiya,
    I'm just doing my first dynamic site too, and am at a similar level to yourself.
    Can you give us more info re the site. What software, eg Dreamweaver etc are you using, and is your server using PHP or ASP etc?
    For what I've used, I amended the SQL side of things in the recordset in Dreamweaver. That way, you can test the SQL as you're setting up the recordset.
    Let me know how you're going on anyway
    Cheers
    Andy
    >

  • HOW TO FILTER DATA FROM MICROSOFT ACCESS

    HOW TO FILTER DATA FROM MICROSOFT ACCESS BASED ON DATE AND TIME AND GIVE THE RESULT TO A TABLE ?
    I need some example files , can anybody please help me ?
    Solved!
    Go to Solution.

    Just be sure to get examples specific to the Jet DBMS. It is rather "idiosyncratic" when dealing with time and date values.
    One question: the timestamp is being saved in a datetime field, right?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to filter datagridview from 3 textboxes?

    hey, would you help me 
    so, i have a form and connects to mdb database.
    this is my code
    Imports System.IO
    Imports System.Data.OleDb
    Public Class Form1
    Private DBPath As String
    Private conn As OleDbConnection
    Private adapter As OleDbDataAdapter
    Private dtMain As DataTable
    Public Sub New()
    InitializeComponent()
    End Sub
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    DBPath = Application.StartupPath + "\db.mdb"
    If Not File.Exists(DBPath) Then
    Dim cat As New ADOX.Catalog()
    cat.Create(Convert.ToString("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=") & DBPath)
    cat = Nothing
    End If
    conn = New OleDbConnection(Convert.ToString("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=") & DBPath)
    conn.Open()
    Try
    Using cmd As New OleDbCommand("CREATE TABLE [Table_1] ([id] COUNTER PRIMARY KEY, [text_column] MEMO, [int_column] INT);", conn)
    cmd.ExecuteNonQuery()
    End Using
    Catch ex As Exception
    If ex IsNot Nothing Then
    ex = Nothing
    End If
    End Try
    Using dt As DataTable = conn.GetSchema("Tables")
    For i As Integer = 0 To dt.Rows.Count - 1
    If dt.Rows(i).ItemArray(dt.Columns.IndexOf("TABLE_TYPE")).ToString() = "TABLE" Then
    ComboBoxTables.Items.Add(dt.Rows(i).ItemArray(dt.Columns.IndexOf("TABLE_NAME")).ToString())
    End If
    Next
    End Using
    End Sub
    Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    If ComboBoxTables.SelectedItem Is Nothing Then
    Return
    End If
    adapter = New OleDbDataAdapter("SELECT * FROM [" + ComboBoxTables.SelectedItem.ToString() + "]", conn)
    Dim builder = New OleDbCommandBuilder(adapter)
    dtMain = New DataTable()
    adapter.Fill(dtMain)
    DataGridView1.DataSource = dtMain
    End Sub
    End Class
    and now i have 4 textbox and 4 column table of database.
    for example, this is my table :
    and if i type :
    textbox 1 : "1"
    textbox 2 : "2"
    textbox 3 : "1" then i press button2.
    the result is textbox4 display : "C"
    other example, if i type textbox1 : "3", textbox2 : "3", textbox3 : "2" then textbox4 diplay "J".
    of course, if i type textbox1 : "3", textbox2 : "3", textbox3 : "2" then i'll get msgbox "max for column 2 is 2" or 
    if i type textbox1 : "3", textbox2 : "4", textbox3 : "2" i'll get msgbox "max of column 1 is 3"
    well, now im stuck, how to filter this. 
    thanks before. sorry for bad english.

    Hello,
    The following uses Lamda and LINQ to query three text box controls where each one has a unique tag value, TextBox1.Tag = 1, TextBox2.Tag = 2, TextBox3.Tag =3. The Tag is used to dictate the order of the columns in the where condition.
    In values, a where condition is used to determine any TextBox controls with Text then in the select I create a condition suitable for use in the SQL SELECT. In the variable WhereClause the conditions are combined. There is one or more conditions they are
    appended to the SQL statement.
    Now if we have to deal with columns of type string we need to surround them in apostrophes which opens up a can or worms if a string contains apostrophes so food for thought.
    Code suitable for VS2012 or higher, for VS2010 line continuation is needed.
    ''' <summary>
    ''' Each TextBox (three of them) have their tag set to 1,2,3 for ordering columns
    ''' in the where clause.
    ''' The Where conditions are using "and", you can also do "or" instead
    ''' </summary>
    ''' <remarks></remarks>
    Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) _
    Handles Button1.Click
    Dim SelectStatement As String = "SELECT * FROM SomeTable"
    Dim Values = Me.Controls.OfType(Of TextBox).Where(
    Function(tb) Not String.IsNullOrWhiteSpace(tb.Text)).Select(
    Function(tb)
    Return New Item With
    .Index = CInt(tb.Tag),
    .Value = tb.Tag.ToString & " = " & tb.Text
    End Function).ToList.OrderBy(Function(item) item.Index)
    Dim WhereClause = String.Join(" and ",
    (From T In Values Select T.Value).ToArray)
    If Not String.IsNullOrWhiteSpace(WhereClause) Then
    SelectStatement &= " WHERE " & WhereClause
    Else
    ' Nothing to append
    End If
    Console.WriteLine(SelectStatement)
    End Sub
    End Class
    ''' <summary>
    ''' Strong type data in the select part of the
    ''' lambda statement above
    ''' </summary>
    ''' <remarks></remarks>
    Public Class Item
    Public Property Index As Integer
    Public Property Value As String
    Public Sub New()
    End Sub
    End Class
    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 filter data from a source XML? Please help!

    Hi Experts,
       I have a source XML as shown below:
        <Inventory>
         <InventoryItem>
           <ItemCode>InTransit</ItemCode>
           <Quantity>1000</Quantity>
         </InventoryItem>
         <InventoryItem>
           <ItemCode>Available</ItemCode>
           <Quantity>1500</Quantity>
         </InventoryItem>
         <InventoryItem>
           <ItemCode>Restricted</ItemCode>
           <Quantity>2500</Quantity>
         </InventoryItem>
        </Inventory>
    My Target XML is as below
        <Inventory>
          <stock>1500</stock>
        </Inventory>
    The stock element contains Quantity value where ItemCode is 'Available'.
    But note that there are 3 InventoryItem nodes.
    So how to get the desired target XML in XI mapping? Basically I have to filter data from source XML based on value of an element. What is the best approach to handle this?
    Kindly help
    Thanks
    Gopal

    Hi venkat,
              Your solution does'nt work fine. But why are you using collapsecontext and splitbyvalue before putting the value into stock element?
               Kindly explain your concept.
    My target message is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Inventory>
       <InventoryItem>
          <ItemCode>InTransit</ItemCode>
          <Quantity>1500</Quantity>
       </InventoryItem>
       <InventoryItem>
          <ItemCode>Available</ItemCode>
          <Quantity>1000</Quantity>
       </InventoryItem>
       <InventoryItem>
          <ItemCode>UnRestricted</ItemCode>
          <Quantity>2000</Quantity>
       </InventoryItem>
       <InventoryItem>
          <ItemCode>Available</ItemCode>
          <Quantity>2500</Quantity>
       </InventoryItem>
    </Inventory>
    I am getting the output even though stock is unbounded and I have used collapsecontext and splitbyvalue as:
    <InvStock>
      <Stock>1000</Stock>
    </InvStock>
    I should get:
    <InvStock>
      <Stock>1000</Stock>
      <Stock>2500</Stock>
    </InvStock>
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

  • How to filter Choose from list object rows?

    Hi everyone,
    I'd like to show Choose from list window using SBO 2005 PL07, Actually I want to show the Active Account of G/L Account, I set the CFL object to one column as following:
    oCFLCreationParams.ObjectType = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
    oCFLCreationParams.UniqueID = "CFL"
    oCFL = oCFLs.Add(oCFLCreationParams)
    Who knows how to set Choose From list object only show Active Account and do not show Title Account.
    Thanks for your help!
    Kathy

    Hi kathy
    I have not tried it on the gl accounts. But basicaly you need to add conditions to filter it. The following is an example that you would of used for business partners but only customers.
      Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                oCFLs = oForm.ChooseFromLists
                Dim oCFL As SAPbouiCOM.ChooseFromList
                Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                ' Adding 2 CFL, one for the button and one for the edit text.
                oCFLCreationParams.MultiSelection = False
                oCFLCreationParams.ObjectType = "2"
                oCFLCreationParams.UniqueID = "CFL1"
                oCFL = oCFLs.Add(oCFLCreationParams)
                ' Adding Conditions to CFL1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "CardType"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "C"
                oCFL.SetConditions(oCons)
                oCFLCreationParams.UniqueID = "CFL2"
                oCFL = oCFLs.Add(oCFLCreationParams)
    The above also compensates for the tab.
    Hope it helps

  • How to delete duplicates from iTunes but not hard drive

    I'm running iTunes 10 and have my music stored on both my NAS drive and backup drive.  Each track appears twice on iTunes: once as lossless for streaming and and once as compressed AAC files for synching to ipods and iphones.
    For some reason, when my PC is turned on after being turned on, the linkstation cannon be 'seen' by iTunes, and therefore if I try to play a track, 'the original file cannot be found'.  If I use the 'add folder to library' option in the 'file' dropdown menu, the tracks are located again.
    Unfortunately, I the last time I did this it resulted in 4 copies of each song on itunes; 2 lossless and 2 AAC.
    I have 2 questions:
    Firstly is there an easy way to delete the duplicates from my iTunes library so that I am left with only 1 lossless and one AAC copy, but not deleing the files from my NAS and backup drive?
    Is there a way I can just store my music as lossless, but convert it easily to aa more compressed format for synching to iphone and ipod?
    Thanks!

    You can try my new DeDupe script. It should be able to get rid of the redundant copies while keeping one copy of each track in each format. See this thread for background.
    I've not used the feature, but iTunes can downsample to 128k AAC on the fly as it syncs your devices. Of course you might find the process is too slow for your needs or find that 128k is too much compression.
    tt2

  • How to remove duplicates from PL-SQL table?

    Hi Gurus,
    I have a PL-SQL table with following structure
    Authors (SR_NO, Auth_Code, Change_Date, Cost)
    This tables is being populated using a cursor. But, this table may have some duplicate rows (for Auth_Code column)
    e.g
    SR_NO      Auth_Code       Change_Date                       Cost
    1               A1             14-FEB-09 08.18.47 AM          11.00
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    4               A1             15-FEB-09 07.00.00 AM        789.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00Out of the above result set I need to select the distinct Auth_Code rows for which the Change_Date is maximum (and store it into some other PL-SQL table for further processing or even deleting from this table itself will also do!)
    i.e. Out of above data A1 is duplicated and has maximum Change_Date = 15-FEB-09 08.00.02 AM.
    Hence my resultant PL-SQL Table should have below data
    SR_NO      Auth_Code       Change_Date                       Cost
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00I am not that much aware of PL-SQL tables and there is no any chance of modifying the existing cursor which populates the data into this PL-SQL table.
    I guess this I need to compare each record of PL-SQL table with others, but not sure how to do that.
    Could you please help?

    HI,
    Like this?:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> with data as(
      2  select 1 as SR_NO, 'A1' as Auth_Code, to_date('14-FEB-09 08.18.47', 'dd-mon-yy hh24:mi:ss') as change_date,    11.00 as cost from dual union all
      3  select 2 as SR_NO, 'A2' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,  2839.00 as cost from dual union all
      4  select 3 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 08.00.02', 'dd-mon-yy hh24:mi:ss') as change_date,  1299.00 as cost from dual union all
      5  select 4 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 07.00.00', 'dd-mon-yy hh24:mi:ss') as change_date,   789.00 as cost from dual union all
      6  select 5 as SR_NO, 'A3' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,   312.00 as cost from dual union all
      7  select 6 as SR_NO, 'A4' as Auth_Code, to_date('14-FEB-09 08.19.02', 'dd-mon-yy hh24:mi:ss') as change_date,   233.00 as cost from dual)
      8  select * from data d where change_date = (select max(change_date) from data d2 where d.auth_code = d2.auth_code);
         SR_NO AUTH_CODE CHANGE_DATE       COST
             2 A2        14/02/2009        2839
             3 A1        15/02/2009        1299
             5 A3        14/02/2009         312
             6 A4        14/02/2009         233
    SQL>Regards,

  • How to avoid duplicates from the form

    when I'm enter MR number , all the data(Part number , Desc details) are displaying correct and then search for desc the duplicate data is displaying actually not duplicate, their MR number is different , but in the form we r showing only the Partnumber & Desc details. and its directly from the table.
    this is the code for search the desc
    DECLARE
    WERE VARCHAR2(2000);
    WERE1 VARCHAR2(1000);
    FIND VARCHAR2(30);
    BEGIN
         :GLOBAL.CODE :=:BLK_MR.SEARCH;
         GO_BLOCK('MR_SELECT_VIEW');
         --WERE :='WHERE MRD_CCNO =  '||TO_CHAR(:BLK_MR.MRNO)||' AND
    -- ITEM_DESC LIKE '''||'%'||:GLOBAL.CODE||'%'||''' ORDER BY ITEM_DESC ';
    MESSAGE(TO_CHAR(:BLK_MR.ITEM61));
    MESSAGE(TO_CHAR(:BLK_MR.ITEM61));
         WERE :='WHERE MRD_CCNO IN ( SELECT VE_CC_NO FROM VE_MASTER WHERE VE_GROUP_CODE=
    '||TO_CHAR(:BLK_MR.ITEM61)||'
    AND VE_SUBGROUP_CODE='||TO_CHAR(:BLK_MR.VE_SUBGROUP)||')
    AND ITEM_DESC LIKE '''||'%'||:GLOBAL.CODE||'%'||''' ORDER BY ITEM_DESC ';
    MESSAGE(WERE);
    MESSAGE(WERE);
         SET_BLOCK_PROPERTY('MR_SELECT_VIEW',ORDER_BY,'');
         SET_BLOCK_PROPERTY('MR_SELECT_VIEW',DEFAULT_WHERE,WERE );
    EXECUTE_QUERY;     
    END;
    how to take the distinct partno from the table, since its is directly from the table.
    b'cos its checking MR number as a where condition

    HI!
    I advise you to create one more block with data type=From clause And as Name nest select (select distinct....)... and then, make, for example on pressing the button change data type of the block:
    set_block_property(block_name, QUERY_DATA_SOURCE_TYPE, get_block_property(block_name(with from clause), QUERY_DATA_SOURCE_TYPE));
    set_block_property(block_name, QUERY_DATA_SOURCE_NAME, get_block_property(block_name(with from clause), QUERY_DATA_SOURCE_NAME));

  • How to restore/duplicate from old backup

    Hi All,
    RMAN Version : 10.2.0.4
    Repository Version : 10.2.0.4
    OS : AIX 6.1
    Target Database : 10.2.0.4
    I have set the RMAN retention policy to 10 days for my database say "BCMT1". I have duplicated this database successfully to "RTEST", but i have restored from backup within the recovery window period.
    what if, i want to duplicate/restore backup which is older then 10days and which is marked obsoleted & deleted from RMAN repository but available on tape ?
    Below is script to detele the obsolete backup:
    run
    crosscheck backup;
    DELETE NOPROMPT EXPIRED BACKUP;
    DELETE NOPROMPT OBSOLETE RECOVERY WINDOW OF 10 days;
    }Script to duplicate the database:
    run
    allocate channel DSK1 type DISK;
    allocate auxiliary channel DSK2 type DISK;
    set until time  "to_date('09/24/10 17:00:00','MM/DD/YY hh24:mi:ss')";
    DUPLICATE TARGET DATABASE TO RTEST1;
    }Below are configuration parameters:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 10 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oraclebackup/BCMT1/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/oraclebackup/BCMT1/%U' MAXPIECESIZE 4 G;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/orapltp1/product/10.2/dbs/snapcf_BCMT1.f'; # defaultCan the catalog command be used to register the old backups with RMAN repository and then restore from those backups ?

    Thanks for quick response...
    Again one question.....
    Since i have deleted the obsolete backups, that means this information is also gone from RMAN repository too.
    Here is the Scenario:
    1) I have backups available on disk from 23rd Sep 2010 To 2nd OCT 2010, So, i can easily restore/duplicate my database with in this time period. (RMAN repository have this information)
    2) I have backups available on tape from 1st AUG 2010 To 1st 22nd Sep 2010. Now, if i need to restore/duplicate database to 26th Aug 2010. I have deleted the obsolete backups, so information gone from repository. How to proceed ?

  • How to eliminate duplicates from multiple subscriptions in iCal?

    Is there a way to eliminate duplicate entries created when subscribing to multiple calendars?  As an example - I have a subscription with each of my kids school calendars (one is in middle school the other elementary). I end up with several duplicates such as the following: 
    February 14, 2014
    * Valentines Day (calendar)
    * Valentines Day (elementary)
    * Valentines Day (middle school)
    Thanks for your help!
    -Curt

    Your specification can be interpreted more than one way.
    In the examples you give, "duplicate records" not only have the same EMPNO, but all the data is the same. If this is what you are trying to avoid, use DISTINCT. Instead ofFROM EMP_TEST Ewrite FROM (select distinct * from EMP_TEST) EThis will eliminate duplicates if and only if every column has the same value.
    Again, not sure if this is what you want but it would work for your sample data.
    P.S. I agree with sb92075, you should make EMPNO a primary key and avoid the problem altogether.

  • How to delete duplicates from iPod

    My problem is that I've got two separate iTunes libraries; one on my work computer, and one at home on my macbook.  A couple years ago, I tried making sure both libraries had the same stuff on it so I could start syncing my ipod...but that didn't work out so well.  So now my libraries are somewhat similar, but neither have exactly the sames songs on them.  If I transfer both libraries to my iPod to catch all the songs the other library is missing, I'm going to end up with several hundred duplicates.  How do I fix this?  And mind you, my work computer is a PC, so I'm working on two different operating systems as well.  It's hard to say that I should only use one computer to store my library too because I use both just as much.   I'm at work all day and need my music there...but then I also need access to my music at home during the weekends....

    Deleting duplicates is easier, but for your lifestyle of using Mac and PC, it is a bit more complicated.
    You would need an portable Hardisk, then consolidate both your libraries into one on the portable hardisk.
    See this iTunes article in Macworld as in this earlier post by JD Warwick

  • How to filter data from two diff. table ???

    i am developing a web application with crystal reports .
    I am using crystal report api in eclipse.
    now my problem ....
    there are three tables person , natural_dead, violent_dead
    I just want to show the total no of count of person dead naturally as well as violently ., count must come from person table (as there is a flag which is set when person is dead)
    so how could i do that ??
    If you need more information , then pls let me know .
    Thanks and regards

    thanks for your reply,
    but there is one problem , i just want to show the count of dead persons caused by nature or violent  like follow
    Persons dead naturally   20
    persons dead Violently     25
         total                               45
    for this i have to use all three tables and i did that,
    but i don't know how crystal reports applying join on them ,
    As i am using crystal report's plugin in eclipse , i am doing drag n drop of tables in data field and and as per their relationship i joined them
    for your information i don't know which version of crystal report i am using , but when i use window->preferences->crystal report->crystal report application  , it showing me available version  11.8.0
    Please let me know if you need further information
    Edited by: Pankajjain15 on Jul 6, 2009 10:18 AM

  • SAP Query: How to filter records from SAP Query output before display

    Hi Friends,
      Can I delete records from an SAP query basic list before it is displayed?
    For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
    I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
    <b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
    Can anybody help me?
    Regards,
    Bharat.
    Message was edited by:
            Bharat Reddy V

    Try this simple procedure. <b>Hope</b> this should work for you.
    You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
    Immediatly after that use this within the List-Processing.
    CHECK GF_STATUS EQ '<RELEASED STATUS>'
    How it works:
    SELECT  <>       "<-------Query processing(system code).
    *< Your code put in the List processing
    CHECK GF_STATUS EQ '<RELEASED STATUS>'   "< --only released records passed.
    *>
    ENDSELECT      "<-----Query endselect(system code).
    Please let me know the result.
    Regards,
    A.Singh
    Message was edited by:
            Amarjit Singh

  • HOW TO REMOVE DUPLICATES FROM INFOCUBES

    If by mistake , data is loaded twice to the infocube then how to eliminate the data from the infocube?

    never go for selective deletion of cube until you are damn sure on outcomes.
    especially dealing with logistics module otherwise data inconsistency will occur
    in your case if you realized the load happened by mistake and that request is not compressed yet and/or not forwarded to further targets(datamart) then you could simply delete that recent request from your cube.
    in case of datamart, you can delete the request from the ultimate targets and then delete the same request from the concerned cube
    but in case of compression, you cant delete the request as F table data would have been moved to E table
    so in this case you might be gone for the toss and selective deletion is the only option left
    then check data modeling whether your cube is fed by some DSO and if possible delete all cube contents and do the delta from DSO

Maybe you are looking for