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.
Author |
Topic |
anilpandey
Starting Member
1 Post |
Posted - 2009-07-22 : 03:21:30
|
i have one main table q_bankand two other blank tables q_bank1,q_bank2now 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 dataMadhivananFailing to plan is Planning to fail |
 |
|
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_bankThen 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 |
 |
|
|
|
|