So, I am creating a connection for mysql to filter out some bad data, and I ran into this strange problem.
- Both tables are linked by
payment_transaction_id . - Both of them have a value of
3463 . - The linked result does not return rows.
- Both tables have this value.
Proof that the entry is in the card_transaction_log file:
select count(*) from card_transaction_log where payment_transaction_id = 3463; >> 1
Proof that the record is in a transaction:
select count(*) from transaction where payment_transaction_id = 3463; >> 1
But the connection does not work.
select count(*) from card_transaction_log a, transaction b where a.payment_transaction_id = b.payment_transaction_id and a.payment_transaction_id = 3463; >> 0
Honestly, I have never seen anything like it in mysql. I even checked with my colleague to make sure that I was not going crazy and / or dumb.
UPDATE:
Although this is the same as above, this request does not work:
select count(*) from card_transaction_log a join transaction b on a.payment_transaction_id = b.payment_transaction_id where a.payment_transaction_id = 3463; >> 0
source share