how can ur insert the emp table

Answers were Sorted based on User's Feedback



how can ur insert the emp table..

Answer / kumar

Alredy We are having the emp table in our database at the
time only we can insert the data otherwise not possible.

We can insert the data into emp table into 2 ways by using insert command.Two syntax of insert command given below

1.insert into tablename values(<values list>)
2.insert into tablename(<column list>) values(<spcified column values >)

Is This Answer Correct ?    36 Yes 0 No

how can ur insert the emp table..

Answer / ammuk221

insert into emp values(serialno,'emp
name','hiredate',emppost,salary,deptno,commission);

Is This Answer Correct ?    12 Yes 7 No

how can ur insert the emp table..

Answer / 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

More SQL Server Interview Questions

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

0 Answers  


What is nolock?

0 Answers  


Explain system functions or built-in functions? What are different types of system functions?

0 Answers  


What are data resources?

0 Answers  


How to create a dml trigger using create trigger statements?

0 Answers  






In which year relase the 7.0& 2000 & 2005?

1 Answers  


What is an expensive query?

0 Answers  


Explain what is the main purpose of having conversation group?

0 Answers  


What is store procedure? How do they work? When do you use?

0 Answers  


How the data stores in a page?

1 Answers  


What is the basic functions for master, msdb, tempdb databases?

2 Answers   CSC,


What are the different types of sql server replication? : sql server replication

0 Answers  


Categories