Suppose I have a table:
CREATE TABLE [tab] (
[name] varchar,
[order_by] int
)
There are 10 rows in the table, and all rows have the same value for order_by (let them say 0)
If I then issue the following SQL:
select * from [tab] order by [order_by]
What is the order of the lines? What factor determines the order of the lines in this case?
source
share