adspace


What does the update command do?

Answer Posted / Sudha Tiwari

The UPDATE command in SQL Server modifies existing records within a table. It takes the form:nnUPDATE table_namenSET column1 = new_value1, column2 = new_value2...nWHERE search_condition;nThe WHERE clause is optional and specifies which rows to update.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can you add custom error messages to sql server?

1209


do you know how to configure db2 side of the application? : Sql server database administration

1123


How do I find query history in sql server?

1023


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1022


What is in place upgrade in sql server?

1125


What is a view in sql?

1039


What are the different types of subquery?

1234


Is it possible to have clustered index on separate drive from original table location?

1039


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1212


what is the difference between openrowset and openquery?

1193


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2565


Disadvantages of the indexes?

1222


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2294


What is temporary table in sql server? Why we use temp table?

1019


What is subquery? Explain the properties of a subquery?

1058