1
So the situation is this, I have a table and in it I have three fields, so I need to compare the (to = b) and see if there’s anyone like it. What my problem, I’m new in the middle of sql and I’m not being sure if I did it right, I tried it in the following ways.
SELECT DISTINCT [a]
,[b]
FROM [Compara] -- 1 °
SELECT [a]
,[b]
FROM [Compara]
WHERE [a] = [b] --2°
None have returned, so I don’t know if I did it right or wrong, if anyone can help me >.<
Brenda, welcome to the O.R. Your question is a bit confused, could you show the structure of your table with some data and put a result you want ? Click on edit I recommend reading on tour to understand a little more how things work here on the network!
– Marconi