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 do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

0 Answers  


Explain syntax for viewing trigger?

0 Answers  


Is mysql the same as sql server?

0 Answers  


How do I start sql server 2016?

0 Answers  


What are rows and columns?

0 Answers  






How to find the latest updated value in a table without sending any parameters to that query

2 Answers  


What is a unique key constraint?

0 Answers  


write sql program to get the detail of student in a class?

2 Answers  


How to join two tables in a single query in ms sql server?

0 Answers  


there is a table having two columns no and name and the data is 1 A 2 B 3 C write a query that will result a horizontal output A,B,C

9 Answers   tdfc, vsworx,


What is create command?

0 Answers  


What is simple indexing method?

0 Answers  


Categories