Article ID: 155795
Article Last Modified on 10/3/2003
BUG #: Windows NT: 15764 (6.50)
15661 (6.00)
Select with "order by" and an outer join -or- Select with distinct and an outer join
create table tbl(i int identity(1,1), id varchar(80)) Insert into tbl(id) select authors.au_id from authors ,titleauthor where authors.au_id *= titleauthor.au_id order by authors.au_lnameThe workaround would be:
select authors.au_id into #temp from authors ,titleauthor where authors.au_id *= titleauthor.au_id order by authors.au_lname Insert into tbl(id) select * from #temp drop table #temp
Insert into tabl(id) select authors.au_id from authors ,titleauthor where authors.au_id *= titleauthor.au_id order by authors.au_lname go select * from tbl go
Keywords: kbbug kbprogramming KB155795