I am a beginner in sql, and i am facing this problem.
I have to make a join between two tables (Masse and LX03).
My join is made between two columns with different names : LX03.Emplacement and Masse.IDMasse
I excluded some values from my select, to shorten my code.
SELECT DISTINCT
Masse.IDMasse AS IDMasse,
Masse.Capacité_stock_sol AS Capacité_stock_sol,
...
LX03.Emplacement AS Emplacement,
LX03.Article AS Article,
...
FROM
LX03 INNER JOIN Masse ON LX03.Emplacement = Masse.IDMasse
I would like my query to match those two columns exactly, but not to be case sensitive. For example : m14 = M14 m1-4 = m1-4
When i run my query though, it returns me results where those two values does not exactly matches, like : LX03.Emplacement = M1-4 and Masse.IDMasse = M14
I initially tried to exclude all values that contained punctuation, but i need those too.
I would like to know if there is a way to ask for values strictly similar, but does not make it case sensitive?
I couldn't find much help on the internet, but maybe since i am a beginner i didn't use the right terms? If so, please refer me to some website that explains it - i want to learn from my mistakes !
Thanks for your help
EDIT for clarification: At the moment, these are the two values matched by my query: M14 = M1-4 But i don't want values with "-" to be matched to values without it.