Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have a table emp , Fields with empname,dnname,dno,salary.
now I want copy distinct salary with all emp detail from emp into new table which is not already exist in database. how would I do this ?

Answer Posted / prashant

SELECT DISTINCT empname,dnname,dno,salary into New Table
from emp

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by check constraint in sql server?

1019


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

141


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

960


What is the current pricing model of SQL Azure?

104


Explain foreign key in sql server?

1075


How do you delete duplicate records in sql server?

1127


Does the unique constraint create an index?

1136


Explain table valued parameters in sql server? Why tvp used?

1070


Explain the truncate command?

1039


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

1112


How to use old values to define new values in update statements in ms sql server?

1336


In how many ways you can invoke ssrs reports?

147


How do clustered indexes store data?

1154


How to transfer an existing table from one schema to another schema in ms sql server?

1028


What are distributed partitioned views?

1137