What is the purpose of update statistics and scope_identity() function?
Answer / Kaushal Kumar Singh
1. Update Statistics: This SQL Server command updates the statistics for a specific table, which helps the Query Optimizer to make more informed choices when executing queries.n2. Scope_Identity(): Returns the identity column value for the last inserted row within a scope (either the current session or a specified transaction).
| Is This Answer Correct ? | 0 Yes | 0 No |
What are different types of views?
Define primary key?
How to find 6th highest salary from Employee table ?
How to return the top 5 rows from a select query in ms sql server?
What is a view?
How do I find the default sql server instance?
How to create hyperlink from returned sql query ?
What is an execution plan? When would you use it? How would you view the execution plan?
please can anyone answer this query Table 1 has 2 columns: EmployeeId,Age Table 2 has 2 columns: EmployeeId, Region Write SQL to Find the region who has the oldest person
How to list all tables in the database using odbc_tables()?
Can anyone explain difference between Database, Data warehouse and Data mart with some example?````
How to select nth record from a table?
13 Answers DELL, Microsoft, Ramco,
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)