2
I have a table composed by the following columns, ID
, Produto
, Compra
, Venda
and Resultado
.
I know the syntax to select the values I want, Example:
Select * From tabela_exemplo where Produto = '030';
However, I would like to know if it is possible to add something that is: Select all columns when the Product is equal to 30, however, the result of this search, I do not want to show the results whose purchase is less than 0.
That would be the idea, but I don’t know how to apply.
At1 I had expressed myself badly in the question, I think agr becomes easier to understand.
If the product and purchase are less than 0, then you do not want to select all columns ?
– Leandro Lima
I expressed myself badly in the question, in vdd, I would like it to search all products equal to 30, and from this search do not appear the values of the Purchase column that are less than 0.
– Geraldão de Rívia
Can you edit the question.
– Leandro Lima