Answer Posted / cow
scope identity will give you the last generated value for
the current session/scope. Note that @@identity is across
sessions.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Define full outer join in sql server joins?
Is it possible to call a stored procedure within a stored procedure?
What is surrogate key? : sql server analysis services, ssas
Where are sql server user names and passwords stored in sql server?
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?
Is it possible for a stored procedure to call itself or recursive stored procedure?
Can you explain the disadvantages/limitation of the cursor?
Does partitioning ssd reduce performance?
What is index in an assignment?
Explain following error properties?
What is RAID? What are the different types of RAID configurations?
What are the database objects? : SQL Server Architecture
Do you know clustered and non-clustered index?
What is filter index?
What is difference between oltp and olap?