adspace


what is a cursor and what is its use?

Answer Posted / ramesh

when we execute any query its return result set. directly
to work on result set we use cursors.

but right now no one is supporting cursors.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How efficient you are in oracle and SQL server?

1269


Can one drop a column from a table?

1098


How to rebuild the master database?

1175


What is sql or structured query language?

1235


How to enter binary string literals in ms sql server?

1256


what is spatial nonclustered index

1066


List the ways in which dynamic sql can be executed?

1099


How to convert numeric expression data types using the cast() function?

1157


Does view occupy space?

1033


How to provide default values to function parameters?

1273


What is a view in sql?

1048


How to remove duplicate rows from table except one?

1096


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?

2576


List out the different types of locks available in sql server?

1058


How do I start sql server 2017?

1024