I have this query:
SELECT web.KONTO, LAGKART.VARENUMMER, LAGKART.GRUPPE, LAGPRIS.PRIS, LAGKART.VARENAVN1, LAGPRIS.LXBENUMMER, LAGPRIS.ENHED
FROM LAGKART
INNER JOIN
LAGPRIS
ON LAGKART.VARENUMMER = LAGPRIS.VARENUMMER
INNER JOIN
DEBWEBVARER web
ON web.VARENUMMER = LAGPRIS.VARENUMMER
WHERE LAGPRIS.ENHED = web.ENHED
AND web.KONTO = ' 00000001'
ORDER BY
LAGKART.VARENAVN1 ASC
And it yields:
KONTO |VARENUMMER|GRUPPE|PRIS |VARENAVN1|LXBENUMMER|ENHED
00000001|003 |1 |0.000000000000|765402 |stk
00000001|003 |1 |0.000000000000|4418625 |kg
The problem is:
In table DEBWEBVARER there are 0 rows containing KONTO = ' 00000001'
Anyone able to figure out why it specifies KONTO as ' 00000001' instead of comparing?