PC Review


Reply
Thread Tools Rate Thread

How to delete records from the original table while randomly selecting the records

 
 
CaribSoft
Guest
Posts: n/a
 
      3rd Feb 2004
I have a database of 100,000 records , I want to randomly (I known how to do
this) select say 200 records randomly , at the same time I want to delete
the randomly selected record from the original table. The random records
will be appended to a new table.

Thanks Patrick


 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      3rd Feb 2004
On Mon, 2 Feb 2004 19:43:31 -0500, "CaribSoft" <v> wrote:

>I have a database of 100,000 records , I want to randomly (I known how to do
>this) select say 200 records randomly , at the same time I want to delete
>the randomly selected record from the original table. The random records
>will be appended to a new table.


You can't do it "at the same time", i.e. not as part of the same
query; but you can create a Delete query joining the two tables,
deleting all those records from the source table which match the new
table.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
Baisong Wei[MSFT]
Guest
Posts: n/a
 
      5th Feb 2004
Hi Patrick,

Thank you for using the newsgroup and I am reviewing you post. Our MVP have
provide a approach that to select the record into a new table and then
delete from the old table the record which are in the new table. I wonder
this meet your requirement or you still have questions about it.

Looking forward to your resply! Thanks

Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete records from table 1 which match records from table 2 Matilda Microsoft Access 7 26th Mar 2009 11:25 PM
Query - Randomly Selecting Records from Table =?Utf-8?B?TFJheTY3?= Microsoft Access Queries 6 12th Oct 2007 01:19 AM
Randomly order the records in a table John S. Ford, MD Microsoft Access Queries 2 11th Feb 2006 09:13 AM
how do you delete records or update records in a link table. =?Utf-8?B?SGVscG1l?= Microsoft Access Queries 2 18th Aug 2005 05:12 PM
Delete records from a table based on selecting in a list box =?Utf-8?B?cmljaGFyZGI=?= Microsoft Access VBA Modules 1 14th Jan 2005 02:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 AM.