Could someone please give me an example of how I can go through and remove duplicate entries? Let's say I have 20 names that are the same; however, I want to remove 19 of thoses names and just keep the one. Is there a way to do this? Thanks for any help.
I did something similar by creating a second table and using a series of queries.
Let's call the original table TableA. I created TableB by copying the structure of TableA. It then created a query to copy distint values from TableA to TableB (this gets rids of duplicates, but keeps the original). My next query deleted the data from TableA. My final query copied the data from TableB back to TableA.
This is not efficient for large amounts of data, nor is it the advised approach. The better approach is to prevent duplicates in the first place. The above patch was used because I forgot to screen out duplicates.
telephoto's method is faster if you only need to do it once. The method I suggested works better if you want to automate this to run periodically.
telephoto,
the one suggestion I have is instead of using the exclamation mark to preview the results, I find it easier to get in the habit of using the preview view. The reason I prefer this is it will show you which records are being selected without actually running the query. This allows you to view the records selected whether it is a select, make-table, update, delete, etc. query
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.