how to copy only distinct data into another table which is not already exist in database?

Answer Posted / sheshu4040

SELECT DISTINCT * INTO TABLE_NEW FROM TABLE_EXISTING

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

561


What is the name of reporting services config file and what’s it’s used for?

107


How do I setup a sql server database?

552


Explain what is the difference between union and union all?

550


Explain syntax for viewing trigger?

543






what stored procedure would you use to view lock information? : Sql server administration

586


what is a sub-report?

96


What is the most common trace flags used with sql server?

524


How to enable/disable indexes?

601


What is the purpose of the master database?

606


what's the difference between delete table and truncate table commands? : Sql server database administration

491


Which command is used for user defined error messages?

565


Explain what is log shipping?

583


What is the most common type of join?

532


What is the purpose of a table?

525