Table
ID W1 W2 1 a q 2 a w 3 b r 4 c t What I would like to obtain is, using a single SQL statement, to query the table using the W2, and get W2 in return where the W1 is the same.
i.e.:
query the table, ask for 'q'. q has 'a' for it's w1 so I want to bring the w2 of rows which also have 'a' in their w1.
How can I achieve this? It is inner join I believe but I am failing big time.
Thank you