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
How to create sub reports?
What is scd (slowly changing dimension)? : sql server analysis services, ssas
Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?
Can a table be moved to different filegroup?
How to list all schemas in a database?
How to divide query output into multiple groups with the group by clause in ms sql server?
How can you control the amount of free space in your index pages?
Define constraints and give an example of their use?
Where in ms sql server is ’100’ equal to ‘0’?
What is database dimension? : sql server analysis services, ssas
What do you need to connect php to sql server?
How to Check if table exists in sql server?
What do you understand by replication in sql server?
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
OPTIMIZATION OF SP,CURSOR,TRIGGERS