MySQL Forums
Forum List  »  General

Re: Why the two sql result is different?
Posted by: Harald Bacik
Date: March 20, 2025 06:53AM

Hey

Not sure, what you try to do.
The first select only tells you, that the two values are equal 1 = true
The second select does not make sense to me.

You try to get all data from both tables, where js = tx are the same, what is not happen. So it would be either JS or TX. So, the result is empty

You should check out joins

https://dev.mysql.com/doc/refman/8.4/en/join.html

Options: ReplyQuote


Subject
Written By
Posted
Re: Why the two sql result is different?
March 20, 2025 06:53AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.