MPeccorini
MIS
Hi fellows,
I have a very strange situation. I have this query:
... and it returns 104 rows (which is correct). But if I add the glinfo table (which has just 1 record) like this:
... and note that I even filter the record (just to be sure). Then it returns 260 records.
This sounds like IMPOSIBLE, but belive me, it is happening. Does somebody have any idea why?
Thanks a lot for your help,
Mauricio Peccorini
I have a very strange situation. I have this query:
Code:
select
consAccount.skglaccount as id,
count(*)
from
glaccount as consAccount,
glaccount as account
where
left(convert(account.glaccountnumber,SQL_CHAR),4) =
left(convert(consAccount.glaccountnumber,SQL_CHAR),4)
and consAccount.postingAttribute = 1
group by
consAccount.skglaccount
... and it returns 104 rows (which is correct). But if I add the glinfo table (which has just 1 record) like this:
Code:
select
consAccount.skglaccount as id,
count(*)
from
glaccount as consAccount,
glaccount as account,
glinfo as info
where
left(convert(account.glaccountnumber,SQL_CHAR),4) =
left(convert(consAccount.glaccountnumber,SQL_CHAR),4)
and consAccount.postingAttribute = 1
and info.skrecordno = 0
group by
consAccount.skglaccount
... and note that I even filter the record (just to be sure). Then it returns 260 records.
This sounds like IMPOSIBLE, but belive me, it is happening. Does somebody have any idea why?
Thanks a lot for your help,
Mauricio Peccorini