Unwanted Information

M

mikeinohio

I have an exsiting database with a table with approx. 1.3 million records in
it, i need to know how can i first create a table removing all but 3
columns, and delete any duplicate records?
 
S

Smartin

mikeinohio said:
I have an exsiting database with a table with approx. 1.3 million records in
it, i need to know how can i first create a table removing all but 3
columns, and delete any duplicate records?

Hi mikeinohio

There are lots of posts on ways to remove duplicate records. Try google
groups on the topic and write back if you get stuck.

To create a new table use SELECT INTO, check F1 for help on "make table"
queries for more on this. You can of course write only three fields to
the new table if desired.

Hoping this helps,
 
6

'69 Camaro

Hi, Mike.
I have an exsiting database with a table with approx. 1.3 million records
in
it, i need to know how can i first create a table removing all but 3
columns, and delete any duplicate records?

Create a make-table query, but use the DISTINCT keyword to select only the
unique records from the data source. In the following example, FName,
LName, and DOB are the three selected columns that will be copied into the
new table, tblNoDuplicates is the new table, and tblBigTable is the original
table.

SELECT DISTINCT FName, LName, DOB
INTO tblNoDuplicates
FROM tblBigTable;

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.
 
M

mikeinohio

sweet it worked thanks alot!

Smartin said:
Hi mikeinohio

There are lots of posts on ways to remove duplicate records. Try google
groups on the topic and write back if you get stuck.

To create a new table use SELECT INTO, check F1 for help on "make table"
queries for more on this. You can of course write only three fields to
the new table if desired.

Hoping this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top