When I run this query
I get the required data along with an extra row.
This extra row is the last in the table and is not a true data entry, nor do I know where it came from.
The OrderNumber is actually empty but there is data in some of the fields.
Why does the query pick this record up?
I also tried
with the same result.
It is a 2003 database and I am looking at it in 2007.
Code:
SELECT * FROM [OrderDetail] WHERE OrderDetail.[OrderNumber] = 244791
This extra row is the last in the table and is not a true data entry, nor do I know where it came from.
The OrderNumber is actually empty but there is data in some of the fields.
Why does the query pick this record up?
I also tried
Code:
SELECT * FROM [OrderDetail] WHERE OrderDetail.[OrderSequenceNumber] = 244791 AND OrderSequenceNumber IS NOT NULL;
It is a 2003 database and I am looking at it in 2007.
Comment