How to delete duplicate data that generated from csv file??
The thing i have done is that i red all the data in the csv file without removing the duplicate data and display it.. For where i should have a known number of index (about 13), my main file should have 13 records no duplicate values. and how can my Java program update the corresponding record in the main file each time an index is updated??
Hope somebody can assist me on this..it would be really helpful for me...
Thank you.
-Rao-
Edited by: reemarao on Apr 1, 2010 3:58 AM
Hi Sudhir,
In case you have edit access in your system carry out the following procedure:
1. Create an export datasource on your cube.
2. Now create the update rules to your cube using the datamart Infosource.
3. In the update rules multiply all the key figures by
-1.
4. Now create an infopackage and give the request id of the duplicate request as selection.
5. Load the datamart request and do the data validation.
If you do not ahve edit access there is no other alternative you would have to delete all the data and reconstruct the requests that you need.
Bye
Dinesh
Similar Messages
-
How to delete master data of materials from sap tables
how to delete master data of materials from sap tables...its needed now.
i know its not recommended but still we need to do this. give me the best possible approach.
regards,
suneethaHi,
I would suggest you not to write your own code to delete the entries.
BAPI_MATERIAL_DELETE, this would mark all materials selected for deletion. But still the material would exist in SAP.
Another solution: Delete a material manually and in another session execute the transaction SM04. This would display the tables which get locked when you do the operation, Then you can write your own code to delete the material numbers from all the related tables.
Regards
Subramanian -
Need help on How to delete duplicate data
Hi All
I need your help in finding the best way to delete duplicate data from a table.
Table is like
create table table1 (col1 varchar2(10), col2 varchar2(20), col3 varchar2(30));
Insert into table1 ('ABC', 'DEF','FGH');
Insert into table1 ('ABC', 'DEF','FGH');
Insert into table1 ('ABC', 'DEF','FGH');
Insert into table1 ('ABC', 'DEF','FGH');
Now I want a sql statement which will delete the duplicate rows and leaves 1 row of that data in the table. ie.in the above example delete 3 rows of duplicate data and leave a row of that data in the table. My oracle version is 8i.
Appreciate your help in advance.Either of these will work, the best approach will depend on how big the table is, and how many duplicates there are.
SQL> SELECT * FROM table1;
COL1 COL2 COL3
ABC DEF FGH
ABC DEF FGH
ABC DEF FGH
ABC DEF FGH
ABC DEF IJK
BCD EFG HIJ
BCD EFG HIJ
SQL> DELETE FROM table1 o
2 WHERE rowid <> (SELECT MAX(rowid)
3 FROM table1 i
4 WHERE o.col1 = i.col1 and
5 o.col2 = i.col2 and
6 o.col3 = i.col3);
4 rows deleted.
SQL> SELECT * FROM table1;
COL1 COL2 COL3
ABC DEF FGH
ABC DEF IJK
BCD EFG HIJ
SQL> ROLLBACK;
Rollback complete.
SQL> CREATE TABLE table1_tmp AS
2 SELECT DISTINCT * FROM table1;
Table created.
SQL> TRUNCATE TABLE table1;
Table truncated.
SQL> INSERT INTO table1
2 SELECT * FROM table1_tmp;
3 rows created.
SQL> SELECT * FROM table1;
COL1 COL2 COL3
ABC DEF FGH
ABC DEF IJK
BCD EFG HIJThere are other approaches as well (e.g. see the EXCEPTIONS INTO clause of the ALTER TABLE command), but these are the most straightforward.
HTH
John -
How to avoid duplicate data while inserting from sample.dat file to table
Hi Guys,
We have issue with duplicate data in flat file while loading data from sample.dat file to table. How to avoid duplicate data in control file.
Can any one help me on this.
Thanks in advance!
Regards,
LKRNo, a control file will not remove duplicate data.
You would be better to use an external table and then remove duplicate data using SQL as you query the data to insert it to your destination table. -
I need some help with my icloud, i have data that i no longer use and dont know how to delete it off my iphone or itunes, help please. im not to good with computer so please make instructions as easy as possible, thank you...
Hello, sweeper123.
Thank you for the question. The articles below will help you in managing your iCloud storage. The first article covers what information is backed up. The second article will walk you through how to manage your iCloud storage.
iCloud: Backup and restore overview
http://support.apple.com/kb/HT4859
iCloud: Managing your iCloud storage
http://support.apple.com/kb/ht4847
Cheers,
Jason H. -
Random Records are being skipped while uploading data in PSA from CSV File
Hi Experts,
I am facing issue in data uploading in PSA through CSV file, Random Records are being skipped while uploading data in PSA.
First Load
We have flat file (.txt in CSV format), which contains 380240 Records.
We are uploading the flat file data into PSA from Application Server. But it uploads Only 380235 records, 5 Records are being skipped.
Second Load
We have re-generated same file next day, which contains same No of Records (380240), but this time it uploads Only 380233 records, 7 Records are being skipped.
We found 1 skipped record (based on key columns combination, by cross verifying from source and PSA table) from First load. But same records (combination of key column) is available in second load. It means same records are not being skipped every time.
Earlier (5 months ago) , We have loaded 641190 Records from flat file in same PSA and all records (641190) were uploaded successfully.
There is no change is Source, PSA and flat file structure.
Thanks & Regards
BijendraHi Bijendra,
Please check in the file if at the begining if it has got any excape sign then that record may be skipped so the records may be mssing
Please check the excape sign like ; if they are present at the beginign that recor entirely will be skipped.
Regards
vamsi -
How to update Records of SAP table from .CSV file
Hi,
I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table.
Now I want to update the all fields in SAP table with the Internal table.
I want to use Update statement.
Update <table Name> SET <field needs to update> WHERE connditon.
I don't want to iterate through thousand on record in sap table to check the where condition.
Could you please tell me how to do it.Hi. I thing you will not workaround the iterating of the internal table.
You can pre-load all the records into another internal table
check lt_csv[] is not initial. " important, otherwise next select would read all records of the table
select .... into lt_dbitab for all entries in lt_csv where key-fieds = lt_csv-key_fields...
check sy-subrc eq 0 and lt_dbitab[] is not initial.
then do in-memory update of the it_dbitab
loop at it_dbitab assign <fs>.
read table lt_csv assign <fs_csv> with key ... " lt_csv should be sorted table with key, or you should try to use binary search
if sy-subrc eq 0.
...change required lt_dbitab fields: <fs>-comp = <fs_csv>-comp...
endif.
endloop.
ant then you can do mass-update
update dbtab from table lt_dbitab.
From performance view, this solution should be much faster than iterating lt_csv directly and updating every single database record
Br
Bohuslav -
How to hide duplicate photos that origins from the photo stream and imported photos?
Hi,
I are using my camera both with an IPad (through SD-card reader) and directly to my iMac.
I want to keep the full photo archive on the iMac.
Now the problem, that I encounter, is that if I use the iPad to look at the photos, those photos will be transfered to the photo-stream.
Then later when I import all my photos from the camera to the i Mac, those photos that I happened to import to the iPad will show up as duplicate in iPhoto.
Of course I only want one copy of a photo regardless if they arrive from the photo-stream or through a direct import to my iMac.
Is there a way to fix this problem or is it simply a bug?
I think it would be rather easy for the iPhoto software to detect duplicates and hide them.You can use one of these applications to identify and remove duplicate photos from an iPhoto Library:
iPhoto Library Manager - $29.95
Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
DeCloner - $19.95 - can find dupicates in iPhoto Libraries or in folders on the HD.
DupliFinder - $7 - shows which events the photos are in.
iPhoto AppleScript to Remove Duplicates - Free
Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: i photo has duplicated many photos, how...: Apple Support Communities.
If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but the only duplicate finder app that detected the iPhone HDR and normal photos as being duplicates was PhotoSweeper. None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have diffferent file names.
iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates. IMO it's a must have tool if using iPhoto.
OT -
How to delete a table maintainance generator from a table ?
Hi all ,
I' ve created a table maintainance generator for a table now i ve added some key field to it hence i want to recreate a table maintainance generator for that
but while creating it again a message is showing" function group cannot be editable "
and the previous screen is appearing
already i ve tried to delete but same message is coming ...(from menu bar)
pls solve the issue...
Regards
Sachhisolved......
Edited by: Sachhidananda Tripathy on Mar 2, 2009 8:40 AM -
How can I transfer dates and locations from excel file to iCal?
I received an Excel file with dates and locations to visit for 45 days. Is there a way to transfer over to iCAL and then to iPhone?
how to input all those addresses into my Garmin as well.
I can't help you with that one.
Could have I also input somehow from excel to entourage and then ical??
I don't think Entourage has the data detectors feature.
AK -
How to handle data that got from SAP by Webservice?
Hi, Gurus.
I am working on IFbA with ABAP and Adobe LiveCycle Designer.
I've developed a function module in R/3 system and created webservice, connected the WSDL address to the form. The problem is how can i handle data that got from SAP by Webservice?
It's Ok if i bind the dataconnection node to the form element, but how can i handle data without binding to the form element? I mean that how can i use the data retrieved from Webserivce in the Javascript, please give me some sample code or script method.
Thanks.Hi Yang,
If you are using Web Service, then the binding will be done automatically.
It can't grow automatically, what else should i do to achieve this?
1.Select the table(make sure you are not selecting subform) in Hierarchy view
2. Under table select the Row which is having the required fileds for data
3. In the Binding of that row, check the checkbox "Repeat Row for each item data" and under that check the Min Count which will set the default row **** to 1
Regards,
Sachin -
How to delete the data from partition table
Hi all,
Am very new to partition concepts in oracle..
here my question is how to delete the data from partition table.
is the below query will work ?
delete from table1 partition (P_2008_1212)
we have define range partition ...
or help me how to delete the data from partition table.
Thanks
Sree874823 wrote:
delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
How the table implements its structure is a physical design consideration.
Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
This is a crucial concept to understand and get right. -
How to delete duplicate songs from libary without deleting them from playlist or other devices
I'm with you verm71; it's not entirely clear how Apple is expecting you to manage this. I'm going on vacation soon and want to clean up my phone so that it's nice and empty for the new pictures. There doesn't seem to be a way to do this without losing your pictures in the new Photos as well. If imported, it's impossible to see which is the Cloud version and which is the Local version. It's very annoying.
I've also noticed in iPhoto you used to have the ability to locate the original of the picture inside the photo database. That option is not provided in Photos, making finding the original extremely difficult.
It seems to be a great, well-oiled system. But I would love to know how Apple envisions the typical workflow for archiving... -
How to delete the sales org information from BP Master Data in SAP CRM 5.0
Hi Guruu2019s
How to delete the sales org information from BP Master Data in SAP CRM 5.0
Thanks...
Mahesh PasupunuriHello
There is a report attached to [SAP Note 725857|https://service.sap.com/sap/support/notes/725857] that performs the deletion.
Regards
Joaquin -
How can I delete duplicate songs that are appearing on my iphone but not in my itunes?
How can I delete duplicate songs that are appearing on my iphone
Hi jpere041,
Thanks for visiting Apple Support Communities.
You can delete individual songs, artists, albums, playlists, compilations and composers from your iPhone. To delete an item, swipe across it, then tap Delete.
This information is on page 61 of the iPhone User Guide
manuals.info.apple.com/en_US/iphone_user_guide.pdf
Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
Regards,
Jeremy
Maybe you are looking for
-
My webcam is no longer recognized by my PC
Last night I attempted to use my webcam on my HP Pavillion dv7 Notebook PC as usual and it did not turn on. I've looked through all of the forums and I attempted to find it in the device manager as well as scan for hardware changes but nothing turned
-
I upgraded to latest version of mountain lion yesterday, this morning my power Mac was running extremely slowly (while typing, had to wait a second or two for words to appear), I shut down to see if problem would clear up. When starting up, screen w
-
I'm new to AS3, this script is from an xml drop down menu. I need to change all the font to " Gil Sans Lite: I looked down the string and only see a place to change fonts twice which I did. But the original font remains in the 1st button, the drop do
-
ICloud and third party mail collection
I've been using MobileMe to pick up a different POP account with another server. I'd like to move it to another IMAP service I have but since I moved to the iCloud I can't find the settings for that. It used to be on the web-based MovileMe settings u
-
Hi All I have been a Sysadmin for the past 5 years, certified in Server 2008 and Server 2012. I need to get into the SQL side of things as I have a new job at a big Business Intelligence company. What is the first exam that I need to take? Do I need