how can ur insert the emp table

Answer Posted / madhav

BY USING 'ON THE FLY TABLES'
CREAT TABLE EMPLOYEE AS SELECT * FROM EMP WHERE 1=2;
(FOR TABLE STRUCTURE)
-----TO INSERT THE EMP TABLE VALUES-------
INSERT INTO EMPLOYEE(SELECT * FROM EMP);
(INSERT THE EMP TABLE DATA)
SELECT * FROM EMPLOYEE;

-----------ALL THE BEST-------------

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

781


What is the architecture of ms sql reporting service?

702


Explain filtered indexes?

745


What is difference between joins and subqueries?

737


How to replace given values with null using nullif()?

722






what method you can use to reduce the overhead of Reporting Services data sources?

202


What is partition index in sql server?

798


What are the restrictions while creating batches in sql server?

759


How do triggers work?

692


What is subreport?

112


What is lock escalation? : sql server database administration

804


How many columns can we include on clustered index ?

677


What is the server name for sql management studio?

655


how to invoke a trigger on demand? : Sql server database administration

732


What are window functions in sql server?

686