I have a table like this
id alias_word language original
1 word1 es changed_word
2 word1 en orig_word
3 word1 fr changed_word
4 word2 de other_original
Supposing reference column language = es
How to make a query to have result all rows that have alias_word column = word1 and the original column is different than original column where language column = es
espected result:
2 word1 en orig_word
Ihave tried this and have empty result
SELECT * FROM words WHERE alias_word = 'word1' AND original <> original