It is necessary to compare data from the MYSQL database, but the data to compare is not extremely similar. The MYSQL LIKE does not work in this case because there are some variables in that query.
To exemplify
In the user table, has the "letters" field.
The cards are inserted as follows:
Intheabovemodelthereare3cardsinserted,butinthesystemtherearemorethan80cards.Andlevelsrangefrom1to20
Ineedtocomparewithanothertable,whichwillnothave80cardsbut3,asbelow:
You should display which cards have a level less than or equal to the registered. In case the cards of id 1201 and 1202 would pass.
How to do this query using MYSQL?