FatalExceptionError
Technical User
I basically have a table that has multiple columns to hold data for transactions but it really boils down to two columns. A license number(char(48)) and a status code(char(2)). A license number goes through multiple status codes as it flows through the system with a new line for each. What I am trying to get is lines that have been received but not withdrawn. The code for what I am doing is below. I get an empty set and I don't understand why. If I query seperately I get rowcounts with differences as expected (recieved > withdrawn).
Where is my logic wrong or is there a better way to do this?
P.S. This is a SQL2K DB
=======================================
The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't
Code:
select
license
from
transactions
where
status = 'Received'
and
license not in (select license from transactions where status= 'Withdrawn')
order by license
Where is my logic wrong or is there a better way to do this?
P.S. This is a SQL2K DB
=======================================
The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't