Write a SQL command to insert and update only a particular field?
Answer / Vinika Choudhary
To insert a new record, use the INSERT statement with ON DUPLICATE KEY UPDATE clause. For example:nnINSERT INTO table_name (column_to_update) VALUES ('new_value') ON DUPLICATE KEY UPDATE column_to_update = 'new_value';nTo update an existing record, use the UPDATE statement with WHERE clause.nnUPDATE table_name SET column_to_update = 'new_value' WHERE condition;
| Is This Answer Correct ? | 0 Yes | 0 No |
let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration
A successfully created SSIS package in SQL Server 2005 runs fine in MS BIDS and Integration Services. But gives error when run through an SQL-Job. What are the possible reasons?
Explain the xml support sql server extends?
What are the steps you should follow to start sql server in single-user mode?
2) Consider a Table name A which has below records ID --- 5 5 5 5 5 Consider another table B which has below records ID -- 5 5 5 5 5 5 5 5 How many rows will be returned by each of the below queries a) select * from A inner join B on A.id = b.ID b) select * from A left join B on A.id = b.ID c) select * from A right join B on A.id = b.ID
Write a SQL Query to find first Week Day of month?
What is a fill factor?
Difference between DELETE and TRUNCATE?
What are translations and its use? : sql server analysis services, ssas
How to tune a stored procedure?
What the difference between UNION and UNIONALL?
What are the encryption mechanisms in sql server?
Oracle (3253)
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)