I believe the answer is no . And I am looking for an example counter to show that the order of output is not guaranteed, without an order by clause.
consider:
create table
, customerId int not null
, orderDateTIme datetime not null)
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
insert into
select * from
select orderId, CustomerId, orderDateTime
, row_number() over (partition by customerId order by orderDateTime) RN
from
In MS SQL Server 2005, output ordering has two properties:
, , . , , order by, , MS SQL Server . , .. , .
, , , , , .