Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 access query

Author  Topic 

anilpandey
Starting Member

1 Post

Posted - 2009-07-22 : 03:21:30
i have one main table q_bank
and two other blank tables q_bank1,q_bank2

now how to insert data into q_bank1,q_bank2 by selecting data from q_bank with distinct records in single insert cmd

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-07-22 : 05:06:23
Which records do you want to copy to the blank tables?
Post some sample data

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2009-07-23 : 19:18:10
INSERT INTO q_bank1 (<field list>)
SELECT DISTINCT <field list>
FROM q_bank

Then do the same for q_bank1. I don't think you can do both with one command - maybe I'm misreading your request.

HTH,

Tim
Go to Top of Page
   

- Advertisement -