Quality is delighting customers
dont say distinct i knw abt dat plzz
Tags:
Permalink Reply by k.vijay on December 15, 2011 at 10:53am Hi,
input
name John Smith John Smith Smith Tom
CREATE TABLE Ttemp(name VARCHAR(50) NOT NULL PRIMARY KEY);
GO
INSERT INTO Ttemp
SELECT DISTINCT * FROM T;
GO
DROP TABLE T;
GO
EXEC sp_rename 'Ttemp', 'T';
GO
SELECT * FROM T;
out put
name John Smith Tom
Regards,
Vijay
09916686756
Permalink Reply by PRABU DAKSHAN on December 15, 2011 at 10:57am select (particular ID) from tablename having count(particular ID)>2
try this u can get a solution
by
prabu.
Permalink Reply by chandra sekhar on December 15, 2011 at 11:03am
Permalink Reply by TULASI on December 15, 2011 at 11:19am Hi,
first create a back up copy table using INTO like this
>>Put the unique rows back in the original table
INSERT old_table SELECT * FROM dup_new_table
>>if there any changes or clarification please let me know
thanks for understanding
Thanks
Tulasi
© 2012 Created by Quality Testing.