Thread
:
How to copy distinct records from one table to another using SQL 2005
View Single Post
•
•
Join Date: Aug 2006
Posts: 2,065
Reputation:
Solved Threads: 256
Ramy Mahrous
Offline
Postaholic
Re: How to copy distinct records from one table to another using SQL 2005
0
#
3
Oct 24th, 2007
Use differential Backup...
or you can use insert select
like
Help with Code Tags
MS SQL Syntax
(
Toggle Plain Text
)
INSERT
INTO
table1
VALUES
(
SELECT
DISTINCT
a,b,c..
FROM
table2
)
insert into table1 values (select distinct a,b,c.. from table2)
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog |
http://ramymahrous.wordpress.com
LinkedIn |
http://www.linkedin.com/in/ramymahrous
Ramy Mahrous
View Public Profile
Visit Ramy Mahrous's homepage!
Find all posts by Ramy Mahrous