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

What is deadlock and how to avoid the deadlocks.

3 Answers   TCS, Wipro,


What is data compression? : sql server database administration

0 Answers  


Explain intellisense for query editing

0 Answers  


What is tcl in sql server?

0 Answers  


Write a query to delete duplicate records in SQL SERVER

36 Answers   Infosys,






can a table be moved to different filegroup? : Sql server administration

0 Answers  


what are the Prerequisites for Replication?

1 Answers   IBM,


Can group by be used without aggregate functions?

0 Answers  


How to get nth highest salary from employee table.

0 Answers  


What is Transparent Data Encryption?

0 Answers  


How to convert numeric values to integers in ms sql server?

0 Answers  


What is the difference between primary key and unique constraints?

0 Answers  


Categories