Posts by Washington Costa • 1 point
1 post
-
0
votes3
answers704
viewsA: You can use two columns of the same table in a WHERE
You can generate a sub query. An example: SELECT ID, valor FROM tabela WHERE valor IN (SELECT valor FROM tabela2 WHERE valor = [parametro]); The sub query should return only one column, which will…