What is the use of for clause?
Answer / Dinkar Rao
The FOR clause in SQL Server is used to iterate through a set of values or a result set. It can be used with various constructs like CURSOR, WHILE loops, and ROW_NUMBER(). For example, it's used in the CURSOR statement to declare a cursor that will contain rows retrieved by a SELECT statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
write the query for find the top 2 highest salary in sql server
36 Answers Cranes, Jayanti Software, Medi Assist, Rmax, TCS,
Explain features and concepts of analysis services?
Can you explain what is the use of custom fields in report?
when we use function instead of procedure? plz tell me the situation with ex?
how to find number of columns in a table in sql server 2000 and 2005 also
How do you troubleshoot errors in a SQL Server Agent Job?
Why is normalisation important?
Where are magic tables stored ? Is it in the same database where it is created ?
what are batch in sql server?
What stored by the model?
Can we call SP inside a query?
5 Answers CA, CarrizalSoft Technologies, Wipro,
List out the different types of locks available in sql server?
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)