Can you tell me the difference between DELETE & TRUNCATE
commands?
Answer Posted / kapil
Delete: is a DML command.
Truncate: is a DDL command.
Delete & Truncate both can be rolled back.
Untill you have not commit transaction.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to create “dependant” parameter “make, model, year”
What is clustered primary key?
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?
When would you use it?
What is database replication? What are the different types of replication you can set up in sql server?
Difference between connected and disconnected database in .net with sql server?
What is stored procedures?
What are different types of collation sensitivity?
How the authentication mode can be changed?
Can we do dml on views?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
What is deploy, process and build? : sql server analysis services, ssas
What are exact numeric data types in ms sql server?
hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.
What is mapping schema?