Acces SQL duplicates

mahmed1

Well-known Member
Joined
Mar 28, 2009
Messages
2,302
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All
i have a table where i have accidently imported in data multiple times.

I am trying to delete out all the duplicate values and cant find some SQL that to do this

can you please advise

thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
use the query wizard in access: Create / Query Wizard >Find duplicates Query Wizard
Of course this will require to have in your table a field to match them as duplicates.
 
Upvote 0
Is there any SQL script i can write to achieve the same results?

i want to be able to run a saved script just encase there are more dups in the future
 
Upvote 0
After you do the query wizard you should be able to save the resulting query to run later as often as you want.
 
Upvote 0
Oh ok - ive never used this before so thought there was a generic script i could have used

il try and give that a go
 
Upvote 0
It depends on how your table is structured - no precisely generic scripts for this, many ways to do it anyway, plus in general everything needs to be customized to fit your table structure and columns so in fact the query wizard as as close as you'll get to plug and play.
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,994
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top