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

What is the need for indexing?

577


What happens if null values are involved in bitwise operations?

694


What is the sql case statement used for?

662


Explain in details security in SQL azure?

107


What have included columns when we talk about sql server indexing?

665






How do I debug a stored procedure in sql server?

622


How would we use distinct statement? What is its use?

688


Can you explain various data region available in ssrs with their use?

628


Explain error and transaction handling in sql server?

594


What does the on delete cascade option do?

656


What is the security principal at the database level that represents your session?

630


How to write an inner join with the where clause in ms sql server?

628


What is named calculation? : sql server analysis services, ssas

616


What is the distinction amongst delete and truncate?

660


Explain trigger classes i.e. Instead of and after trigger?

567