how insert selected column only ?
Answers were Sorted based on User's Feedback
Answer / rajkumar
Format
------
Inser into <tablename> (column name) select (column name)
from <tablename> where <Condition>
Example
--------
INSERT INTO emp (empname) SELECT empname from employe WHERE
empid=5
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / srinivas
insert into <table_name> ( <col1> ,<col3>) values ( val1,val2)
| Is This Answer Correct ? | 1 Yes | 0 No |
Is sql server 2016 free?
ow to bring suspect mode datbase online from scratch
how many triggers you can have on a table? : Sql server database administration
Explain the storage models of OLAP?
How do you find the error, how can you know the number of rows effected by last SQL statement?
What are the different type of replication in sql server?
You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?
In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp;
What are the differences between UNION and JOINS?
3 Answers CarrizalSoft Technologies,
What are the steps you will take to improve the performance of a poor performing query?
What are the different ways of moving data/databases between servers and databases in SQL Server?
Can you explain what are commit and rollback in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)