ROWNUM is a pseudo-column, not a regular column, meaning it's not stored in the table. It's assigned dynamically by the database system during query execution. The order of the rows in the result set is determined by the query's ORDER BY clause (if present). If no ORDER BY clause is specified, the order is arbitrary. Crucially, ROWNUM is assigned *before* any filtering or aggregation occurs. This means that if you filter the results, the row numbers will still reflect the original order. ROWNUM is particularly useful for tasks like retrieving the top 10 performers, or for implementing pagination in applications. It's important to note that ROWNUM is not guaranteed to be unique across multiple queries on the same table. Each query gets its own independent numbering.