Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 strange behaviour

Author  Topic 

misterraj
Yak Posting Veteran

94 Posts

Posted - 2009-06-12 : 02:48:00
we have a strange behaviour in our database. not sure where the settings became wrong.

select * from table1
returns 1 record but

select * from table1 where a='some condition'
returns 2 records. (duplicate)

can any one please explain why is it ?

note:- there are duplicate records, the second query returns 2 records properly while the first one returns only one.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-12 : 03:15:10
Seems like an index error.
Rebuild your indexes on the table, if there are any.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -