Interviews9 answers
What is ROWNUM, RANK and ROWCOUNT ?
9 Answers
RowCount gets or sets the number of rows displayed in the DataGridView.
Rows.Count returns the number of rows
Keerthi VenkatesanPosted Jun 7, 2016, 10:58 PM EDT
function will assign a unique number to each distinct row.
Keerthi VenkatesanPosted Jun 7, 2016, 10:58 PM EDT
he ROW_NUMBER built-in SQL function provides superior support for ordering the results of a query. Refer to ROW_NUMBER for more information.
For each row returned by a query, the ROWNUM pseudocolumn returns a number indicating the order in which Oracle selects the row from a table or set of joined rows. The first row selected has a ROWNUM of 1, the second has 2, and so on.
You can use ROWNUM to limit the number of rows returned by a query, as in this example:
SELECT * FROM employees WHERE ROWNUM < 11;
Keerthi VenkatesanPosted Jun 7, 2016, 10:57 PM EDT
Row_Number() function will assign a unique id to each row returned from the query.
Rank() function will assign a unique number to each distinct row, but it leaves a gap between the groups.
RowCount count the number of row populated by the query.
Nikhil SanganiPosted Jun 6, 2016, 3:11 AM EDT
Row Count
The number of rows that are populated by the Query
Bhuvanesh MohankumarPosted May 18, 2016, 3:56 AM EDT
Dense_Rank()
This function is similar to Rank with only difference.
Bhuvanesh MohankumarPosted May 18, 2016, 3:55 AM EDT
Rank()
This function will assign a unique number to each distinct row.
Bhuvanesh MohankumarPosted May 18, 2016, 3:55 AM EDT
Row_Number()
This function will assign a unique id to each row returned from the query.
Bhuvanesh MohankumarPosted May 18, 2016, 3:55 AM EDT
ROWNUM - Assign unique row number to each row
RANK - Assign number to each row but Rank will be same for rows having duplicate values
ROWCOUNT - Return no of rows affected by last query statement
Vivek BansodPosted Jan 8, 2016, 12:34 AM EST




